Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save varenc/65e413d7175ddd55e6aa04ada1f53edb to your computer and use it in GitHub Desktop.
Save varenc/65e413d7175ddd55e6aa04ada1f53edb to your computer and use it in GitHub Desktop.
Chrome Wayback Machine search engine/bookmarklet. Accepts full URLs and works on Chrome's New Page window.

Quickly look up a URL in the Wayback Machine in Chrome.

Add the below snippet as a search engine in Chrome. Then just type keyword you choose, press TAB, and paste in a URL.

data:text/html,<script>location.href='https://web.archive.org/web/*/%s'</script>

Key differences between this and the more obvious method:

  • Works if you paste a full URL including https://.... Otherwise this is incorrectly escaped
  • Works on the Chrome New Tab page. Uses the trick mentioned here to create a new origin so that injected JS is allowed.

Screenshot:

data:text/html,<script>location.href='https://web.archive.org/web/*/%s'</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment