// ==UserScript== // @name The Redeemer // @namespace raina // @description Pops up the Steam product activation dialog when copying keys from bundle pages with Cmd/Ctrl-C. Currently supports Humble Bundle and Indie Royale. Obviously requires that Steam is installed but also that it's allowed as the handler of steam:// protocol messages. // @include /^https?:\/\/www\.humblebundle\.com\/downloads\?/ // @include /^https?:\/\/www\.humblebundle\.com\/home\/keys/ // @include /^https?:\/\/www\.humblebundle\.com\/home\/library/ // @include /^https?:\/\/www\.indieroyale\.com\/bundle\/key\// // @version 1 // @grant none // @downloadURL none // ==/UserScript== (function() { "use strict"; window.addEventListener("keypress", function(e) { if ("KeyC" === e.code && (e.ctrlKey || e.metaKey)) { window.location.href = "steam://open/activateproduct"; } }, false); }());