Skip to content

Instantly share code, notes, and snippets.

@C-Duv
Created June 10, 2019 17:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save C-Duv/69440cf75065f34522a764fb0bf2d165 to your computer and use it in GitHub Desktop.
Save C-Duv/69440cf75065f34522a764fb0bf2d165 to your computer and use it in GitHub Desktop.
Bookmarklet to open Steam Database (steamdb.info) page from Steam Store (store.steampowered.com) page
/**
How to use:
1/ Use the following line as the "URL" of a bookmark in your web browser.
2/ Place the bookmark in the bookmark bar for easy access.
3/ When on a steampowered.com page, click on the bookmark and the corresponding steamdb.info page will open.
*/
javascript:(function(){if (window.location.hostname == 'store.steampowered.com') {var pathMatch = window.location.pathname.match(/^\/(?<appType>(app|bundle|sub))\/(?<appId>\d+)\//);pathMatch && window.open('https://steamdb.info/' + pathMatch.groups.appType + '/' + pathMatch.groups.appId + '/?source=bookmarklet','_blank');}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment