Last active
March 8, 2016 06:20
-
-
Save hrywlms/f347e46662ac07ab6cdb to your computer and use it in GitHub Desktop.
Add a button to Steam store pages to open the current page in the native Steam Client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Open in Steam Client Button | |
// @include http://store.steampowered.com/app/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
$J('.apphub_OtherSiteInfo').after('<div class="apphub_OtherSiteInfo">' + | |
'<a class="btnv6_blue_hoverfade btn_medium" style="margin-right: 3px;" href="steam://advertise/' + window.location.href.split('app/')[1] +'">' + | |
'<span>Open in Steam Client</span>' + | |
'</a>' + | |
'</div>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment