Greasy Fork

来自缓存

The Redeemer

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.

目前为 2015-06-25 提交的版本。查看 最新版本

// ==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
// ==/UserScript==
(function() {
	"use strict";
	window.addEventListener("keypress", function(e) {
		if ("KeyC" === e.code && (e.ctrlKey || e.metaKey)) {
			window.location.href = "steam://open/activateproduct";
		}
	}, false);
}());