Created
July 12, 2013 19:00
-
-
Save mrw34/5986860 to your computer and use it in GitHub Desktop.
Userscript to replace iCal downloads on traintimes.org.uk with links to Google Calendar's event creation page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @match http://traintimes.org.uk/* | |
// ==/UserScript== | |
(function() { | |
var icals = document.getElementsByClassName("ical"); | |
for (var i = 0; i < icals.length; i++) { | |
icals[i].href = 'http://markwoodbridge.appspot.com/ical?url=' + encodeURIComponent(icals[i].href); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Chome and Firefox installation instructions see http://userscripts.org/about/installing