Skip to content

Instantly share code, notes, and snippets.

@bakkot
Created February 4, 2017 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakkot/a28f65bff57b2332b7c8fce21e43e6a9 to your computer and use it in GitHub Desktop.
Save bakkot/a28f65bff57b2332b7c8fce21e43e6a9 to your computer and use it in GitHub Desktop.
A bookmarklet (make a new bookmark with this as its URL) to scroll to the SSC comment you opened the page on
javascript:(function(){(location.hash&&document.querySelector(location.hash).scrollIntoView())}())
@bakkot
Copy link
Author

bakkot commented Feb 4, 2017

E.g. in Chrome you can right click on the bookmarks bar and click 'Add page', then pick a name and copy the contents of this script into the URL box.

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