From ScottWiki
var cleardots = document.evaluate("//img[@src='images/cleardot.gif']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
var cleardot, i, div, theimg;
for(cleardot = null, i = 0; (cleardot = cleardots.snapshotItem(i)); i++) {
div = cleardot.parentNode;
if (div.nodeName != "DIV") {
div = div.parentNode;
}
theimg = document.defaultView.getComputedStyle(div, ).backgroundImage;
theimg = theimg.replace(/url\((.*?)\)/g, "$1");
cleardot.style.border = "none";
cleardot.src = theimg;
}
document.oncontextmenu = null;