Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bookmarklet to open Steam Database ( page from Steam Store ( 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 page, click on the bookmark and the corresponding page will open.
javascript:(function(){if (window.location.hostname == '') {var pathMatch = window.location.pathname.match(/^\/(?<appType>(app|bundle|sub))\/(?<appId>\d+)\//);pathMatch &&'' + 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
You can’t perform that action at this time.