Skip to content

Instantly share code, notes, and snippets.

@humantorch
Created August 18, 2009 09:43
Show Gist options
  • Save humantorch/169647 to your computer and use it in GitHub Desktop.
Save humantorch/169647 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Anti Hotkey
// @namespace http://files.evdawg.com/yay/
// @description Removes q-b, q-u, etc hotkeys from Yay Hooray
// @include http://*yayhooray.com*
// ==/UserScript==
var allDivs, thisDiv;
allDivs = document.evaluate(
"//script[@src='http://include.reinvigorate.net/re_.js']",
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null
);
for (var i = 0; i < allDivs.snapshotLength; i++) {
thisDiv = allDivs.snapshotItem(i);
var newscript = document.createElement("script");
newscript.innerHTML = '' +
'document.onkeyup = function() {} ' +
'';
document.body.insertBefore(newscript, thisDiv)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment