入力したXPathの指す要素を表示点滅させるブックマークレット(一つだけ)

javascript:function b(){if(e.b){e.b=null;e.style.background=e.o}else{e.b=true;if(e.style){e.o=e.style.background;e.style.background="rgba(255,0,0,0.5)"}else{e.o="none"};setTimeout(b,1000)}}function s(d,p){b(e=d.evaluate(p,d,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)}s(document,prompt("Input XPath","//div"))

XPath対象の要素を一つだけ点滅させる。本当はXPathの対象となる要素全部を点滅させたかったけど略。

test