Skip to content

Instantly share code, notes, and snippets.

@csalzman
Last active September 14, 2016 18:02
Show Gist options
  • Save csalzman/feaa8aabaa6fc03301c0d3c1a2fd854e to your computer and use it in GitHub Desktop.
Save csalzman/feaa8aabaa6fc03301c0d3c1a2fd854e to your computer and use it in GitHub Desktop.
Make The Ride's Live Maps So Much Better
//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