Timer Alert Bookmarklet

timer-bookmarklet.js

A timer bookmarklet to alert you that a certain amount of time has passed (or anything else that you want to set an alarm for).

In my case I was trying to prevent new-relic logouts, which would catch me by surprise

Default Configuration

Default Usage

See Installation Instruction section below on how to install the bookmarklet

  1. Click the bookmarklet to set a timer for your specified duration. Notice the timer will appear in your tab name (Note: you can click the bookmarklet again to cancel your timers).
  2. When your timer is done counting down, it will stop at zero and display the timestamp of when it stopped. It will also play the default sound three times before opening the reminder window.
  3. A popup will appear to remind you to re-login to new relic so you don’t lose your work.
  4. You can click the bookmarklet again to clear the timers and stop the pending alert.

Installation Instruction

Installs like any other bookmarklet.

  1. Create a placeholder bookmark.
  2. Edit your bookmark and add the script where the url would normally go.
  3. Give it a test from the webpage you want to execute the JS from.
  4. Make sure sounds and popups are working (if you want those configurations).
  5. Adjust any other configurations (see code).

Troubleshooting