javascript:(function(){ location.reload(); var count=0, text, e; xpath=prompt("xpath()", ""); if(xpath==null || xpath.length==0) return; var nodesSnapshot = document.evaluate(xpath, document.body, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null ); for ( var i=0 ; i < nodesSnapshot.snapshotLength; i++ ) { e = nodesSnapshot.snapshotItem(i); e.style.borderStyle="solid"; e.style.borderWidth="2px"; e.style.borderColor="blue"; ++count; } window.status="Found "+count+" match"+(count==1?"":"es") +" for xpath("+xpath+")"; })();