Skip to content

Instantly share code, notes, and snippets.

@kevinvanrijn
Created March 6, 2016 20:02
Show Gist options
  • Select an option

  • Save kevinvanrijn/f07695024a27ee59eebf to your computer and use it in GitHub Desktop.

Select an option

Save kevinvanrijn/f07695024a27ee59eebf to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Show in Steam 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>Show in Steam</span>' +
'</a>' +
'</div>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment