[已解决]求助有没有可以方便编辑zotero网页快照(本地HTML)的工具

网上收集的清除网页元素的小书签

javascript:(function(){var isIe=false;/*@cc_on isIe=true; @*/function fe(a,fn){var i,l=a.length;for(i=0;i<l;i++){fn(a[i]);}};function ae(el,n,fn,ix){function wfn(ev){var el=(isIe?window.event.srcElement:ev.target);if(ix%20||%20!el.xmt)%20fn(el);}if%20(isIe){n=%27on%27%20+%20n;el.attachEvent(n,%20wfn);}%20else%20{el.addEventListener(n,%20wfn,%20false);}if(!el.es)el.es=[];el.es.push(function(){if(isIe){el.detachEvent(n,wfn);}%20else%20{el.removeEventListener(n,%20wfn,%20false);}});el.re=function(){fe(el.es,function(f){f()});};}function%20sce(el){var%20oldclick=el.onclick,oldmu=el.onmouseup,oldmd=el.onmousedown;el.onclick=function(){return%20false;};el.onmouseup=function(){return%20false;};el.onmousedown=function(){return%20false;};el.rce=function(){el.onclick=oldclick;el.onmouseup=oldmu;el.onmousedown=oldmd;};}if%20(!window.r_)window.r_=[];var%20r=window.r_;var%20D=document;ae(D.body,%27mouseover%27,%20function(el){el.style.backgroundColor=%27#ffff99';%20sce(el)});ae(D.body,'mouseout',%20%20function(el){el.style.backgroundColor='';if(el.rce)el.rce();});ae(D.body,'click',%20%20%20%20%20function(el){el.style.display='none';%20r.push(el);});function%20ac(p,tn,ih){var%20e=D.createElement(tn);if(ih)e.innerHTML=ih;p.appendChild(e);return%20e;}var%20p=0;var%20bx=ac(D.body,'div');bx.style.cssText='position:'+(isIe?'absolute':'fixed')+';padding:2px;background-color:#99FF99;border:1px%20solid%20green;z-index:9999;font-family:sans-serif;font-size:10px';function%20sp(){bx.style.top=(p&2)?'':'10px';bx.style.bottom=(p&2)?'10px':'';bx.style.left=(p&1)?'':'10px';bx.style.right=(p&1)?'10px':'';}sp();var%20ul=ac(bx,'a','%20Undo%20|');ae(ul,'click',function(){var%20e=r.pop();%20if(e)e.style.display='';},%20true);var%20ual=ac(bx,'a','%20Undo%20All%20|');ae(ual,'click',function(){var%20e;while(e=r.pop())e.style.display='';},%20true);var%20ml=ac(bx,'a','%20Move%20|');ae(ml,'click',function(){p++;sp();},%20true);var%20xl=ac(bx,'a','%20Exit%20');ae(xl,'click',function(){D.body.re();bx.parentNode.removeChild(bx);},%20true);fe([bx,ul,ml,xl,ual],function(e){e.style.cursor='pointer';e.xmt=1;});})()
3 个赞