Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Userscript to replace iCal downloads on traintimes.org.uk with links to Google Calendar's event creation page
// ==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);
}
})();
@mrw34

This comment has been minimized.

Copy link
Owner Author

mrw34 commented Jul 18, 2013

For Chome and Firefox installation instructions see http://userscripts.org/about/installing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.