Skip to content

Instantly share code, notes, and snippets.

@hrywlms
Last active March 8, 2016 06:20
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 hrywlms/f347e46662ac07ab6cdb to your computer and use it in GitHub Desktop.
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
// ==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