Skip to content

Instantly share code, notes, and snippets.

View marcos-velez's full-sized avatar

Marcos I. Velez marcos-velez

  • 16:23 (UTC -04:00)
View GitHub Profile
@marcos-velez
marcos-velez / path_arrivals_v2.js
Last active January 22, 2025 23:15
This bookmarklet generates a clean and simple UI to browse real-time PATH train arrivals. Information is refreshed every 30 seconds.
/* 1. Paste this entire gist over at https://mrcoles.com/bookmarklet/ to generate a bookmarklet */
/* 2. If desired, update the default PATH station code and heading [line #9 below, but refer to line 12 for station codes */
/* 3. Use a meaningful (or fun!) name, like: "Simple PATH Times" or "🚊 Arrivals" */
/* 4. Drag the generated bookmarklet link to your Bookmarks Toolbar */
/* 6. Enjoy the clean, simple UI to browse PATH arrivals information */
function(){
sta = 'EXP'; dir = 'NY';
let da = ['NJ', 'NY'];
@marcos-velez
marcos-velez / path_arrivals_bookmarklet.js
Last active January 21, 2025 18:39
Bookmarklet to display a clean, simple text-based UI to browse PATH train status info
/* 1. Paste this entire gist over at https://mrcoles.com/bookmarklet/ to generate a bookmarklet */
/* 2. If desired, update the default PATH station code and heading [line #9 below] - refer to line 12 for station codes */
/* 3. Use a meaningful (or fun!) name, like: "Simple PATH Times" or "🚊 Times" */
/* 4. Drag the generated bookmarklet link to your Bookmarks Toolbar. */
/* 5. Click on the bookmarklet when on the PATH JSON feed page [https://www.panynj.gov/bin/portauthority/ridepath.json] */
/* 6. Enjoy the clean, simple UI to browse PATH train arrivals information */
function(){
sta = 'EXP'; dir = 'NY';