All pastes #608805 Raw Edit

Untitled

public javascript v1 · immutable
·published 2007-07-08 14:40 UTC
rendered paste body
function xPath(x) { return document.evaluate(x, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); }var textnodes = xPath("//text()");for(var i=0;i<textnodes.snapshotLength;i++){var node = textnodes.snapshotItem(i);node.textContent = node.textContent.replace("a", "AAAA");}