Skip to content

Instantly share code, notes, and snippets.

Last active Nov 27, 2018
What would you like to do?

Bookmarklet for Custom Starting Points

  1. Create a duplicate bookmark by copy-pasteing an existing bookmark on your bookmark bar. The newly created bookmark will serve as a placeholder for putting in some bookmarklet JavaScript code.
    • Edit the bookmark and change the Name to CustomCD or whatever you might prefer to call it. You may choose to skip this step and edit the name when you update the URL in step 4 below.
  2. Select the below Javascript code by starting your cursor from before the javacript keyword all the way to the () at the very end. Copy the selection into your Clipboard by using Ctrl-C.
  3. Right-click on the CustomCD bookmark from Step 2 and choose "Edit".
  4. Paste the JS code (use Ctrl-V) directly into the dialog box referred to as "URL"
  5. If you haven't change the "Name" of the bookmark, edit that before you Save the bookmark.

That's it! You have now a bookmarklet which will extract the hexadecimal ID, the avatar and the traffic light (you can override the default total count) from any valid CD session that you might have created.

  1. Select the tab wherein you have the CD session from which you want to create a custom session.
  2. Click on the newly created bookmarklet and respond to the prompts appropriately.
  3. Finally, click "Yes" to the "Do you want to launch?" and it will fork a new CD session.
  4. Enjoy!

Javascript Code for bookmarklet


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