Last active
September 14, 2016 18:02
-
-
Save csalzman/feaa8aabaa6fc03301c0d3c1a2fd854e to your computer and use it in GitHub Desktop.
Make The Ride's Live Maps So Much Better
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
//Use this on The Ride's Live Maps page: | |
//http://www.theride.org/Schedules-Maps-and-Tools/Live-Maps | |
//Find an extension or plugin that let's you run your own javascript on a page | |
//I'm using "Custom JavaScript for websites" in Chrome. | |
//Replace the array with the route numbers you care about. Just the number | |
var routesYouCareAbout = [65, 23]; | |
window.onload = function() { | |
//Loop through the numbers in the array and click them | |
for(i = 0; i < routesYouCareAbout.length; i++) { | |
document.getElementById("chk" + routesYouCareAbout[i]).click(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment