// ==UserScript==
// @name Hied
// @namespace http://intpforum.com/
// @description Hied dispay
// @include http://*intpforum.com/*
// ==/UserScript==
// GreaseMonkey won't let us modify the existing onClick
// handler, so we'll just fight it. That's right, violence is the solution!
function battlingClickHandler() {
if (this.value == 'Dispay')
this.value = 'Display';
}
// Find the relevant spoiler buttons
spoilerButtons = document.evaluate(
"//input[@value='Dispay' and @type='button']",
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);
// Go through and fix each one
for (var i = 0; i < spoilerButtons.snapshotLength; i++) {
var node = spoilerButtons.snapshotItem(i);
// Adjust the initial label
node.value = "Display";
// Make sure it stays that way even after being clicked
node.addEventListener("click", battlingClickHandler, true);
}