Skip to content

Instantly share code, notes, and snippets.

@vielmetti
Forked from csalzman/ridebetter.js
Last active September 13, 2016 13:32
Show Gist options
  • Save vielmetti/590fc37c58a13e1a34a1b8217f571c82 to your computer and use it in GitHub Desktop.
Save vielmetti/590fc37c58a13e1a34a1b8217f571c82 to your computer and use it in GitHub Desktop.
Make The Ride's Live Maps So Much Better
//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 = [5, 6, 62];
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