Skip to content

Instantly share code, notes, and snippets.

@steadystatic
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save steadystatic/799f5ba2e7b5ecaa0628 to your computer and use it in GitHub Desktop.

Select an option

Save steadystatic/799f5ba2e7b5ecaa0628 to your computer and use it in GitHub Desktop.
Bookmarklet for m.uber.com, see here now: https://github.com/steadystatic/uber-alert-chrome
javascript:uberCheck=setInterval(function(){if (document.getElementById('set-pickup-btn').className.indexOf("unavailable")===-1){var audio=document.createElement("audio"); audio.src="//bit.ly/1CqZfVJ"; audio.addEventListener("ended", function(){document.removeChild(this);}, false); audio.play(); cleanup(uberCheck);}}, 1000);
uberCheck = setInterval(function() {
if (document.getElementById('set-pickup-btn').className.indexOf("unavailable") === -1) {
var audio = document.createElement("audio");
audio.src = "//bit.ly/1CqZfVJ";
audio.addEventListener("ended", function() {
document.removeChild(this);
}, false);
audio.play();
cleanup(uberCheck);
}
}, 1000);
@steadystatic
Copy link
Copy Markdown
Author

  1. Copy raw code of file, 'available-uber-alert-min'
  2. Open up m.uber.com and add it as a bookmark, drag bookmark to bookmarks toolbar
  3. Right click and Edit bookmark you made, replace the URL with text you copied from 'available-uber-alert-min'
  4. Drag bookmark to bookmarks bar if its not there, click it to beep at you when you're on m.uber.com. Leave the tab open and when an Uber is available you'll hear a car horn honk.

@Furd
Copy link
Copy Markdown

Furd commented Jan 28, 2015

Hey Mike..... This is brad.. My kids call me Furd... for Bradfurd... guess its my new user name

@steadystatic
Copy link
Copy Markdown
Author

Hey Brad – let me know what an Uber driver thinks of this bookmarklet! Thanks for checking it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment