2010-09-08から1日間の記事一覧

入力した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,XPathResul…

XPathを取得するブックマークレット

javascript:function x(e){if(e.nodeType==9){return""}if(e.hasAttribute("id")){return'id("'+e.getAttribute("id")+'")'}var p=e.parentNode;var t=x(p)+"/"+e.tagName.toLowerCase();var c=p.childNodes;var g=0;var s;for(var i=0,n=c.length;i

test