FiLinX

букмарклетс инфо по метатегам страницы

Jun 12th, 2024
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:(function(){let e=new DOMParser;code=e.parseFromString(document.documentElement.innerHTML,"text/html");let t=code.querySelectorAll("script");function l(){return NodeFilter.FILTER_ACCEPT}let n=code.getElementsByTagName("body")[0];if(!n){alert("%D0%9D%D0%B5 %D1%83%D0%B4%D0%B0%D0%BB%D0%BE%D1%81%D1%8C %D0%BF%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%B8%D1%82%D1%8C %D0%B8%D0%B7-%D0%B7%D0%B0 %D0%BE%D1%88%D0%B8%D0%B1%D0%BE%D0%BA %D0%B2 %D0%BA%D0%BE%D0%B4%D0%B5. %D0%9F%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D1%8C%D1%82%D0%B5 %D0%BA%D0%BE%D0%B4 %D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D1%8B %D0%BD%D0%B0 %D0%B2%D0%B0%D0%BB%D0%B8%D0%B4%D0%BD%D0%BE%D1%81%D1%82%D1%8C.");return}function o(e){let t=e;for(;t.indexOf("  ")+1;)t=t.replace(/ {2}/g," ");return t}let r=n.innerText.replace(/[\r\n\t]/gi," ");r=o(r);let i=[],a=document.createNodeIterator(code,NodeFilter.SHOW_COMMENT,l,!1),s;for(;s=a.nextNode();)i.push(s.nodeValue);let p=n.querySelectorAll("h1, h2, h3, h4, h5, h6");p||(p=[]);let c=[];for(let d=0;d<p.length;d+=1)c[d]=[],c[d].head=Number(p[d].localName[1]),c[d].text=p[d].textContent;let b=[],$=!1;for(let h=0;h<c.length;h+=1){if(0===h&&1!==c[0].head){c[0].error="%D0%9F%D0%B5%D1%80%D0%B2%D1%8B%D0%B9 %D0%B7%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BE%D0%BA %D0%BD%D0%B5 h1",b[c[0].head]=!0,$=!0;continue}1===c[h].head&&b[1]&&(c[h].error+="%D0%91%D0%BE%D0%BB%D0%B5%D0%B5 %D0%BE%D0%B4%D0%BD%D0%BE%D0%B3%D0%BE %D0%B7%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BA%D0%B0 H1. "),1===c[h].head&&(b[2]||b[3]||b[4]||b[5]||b[6])&&(c[h].error+="%D0%9D%D0%B5 %D0%BF%D0%B5%D1%80%D0%B2%D1%8B%D0%B9 %D0%B7%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BE%D0%BA %D0%B2 %D0%B8%D0%B5%D1%80%D0%B0%D1%80%D1%85%D0%B8%D0%B8."),1===c[h].head||b[c[h].head-1]||(c[h].error+="%D0%9F%D0%B5%D1%80%D0%B5%D0%B4 %D0%B7%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BA%D0%BE%D0%BC %D0%BD%D0%B5 %D0%B1%D1%8B%D0%BB%D0%BE %D0%B7%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BA%D0%B0 %D1%83%D1%80%D0%BE%D0%B2%D0%BD%D0%B5%D0%BC %D0%B2%D1%8B%D1%88%D0%B5."),c[h-1]&&c[h].head-c[h-1].head>1&&(c[h].error+="%D0%9D%D0%B0%D1%80%D1%83%D1%88%D0%B0%D0%B5%D1%82 %D0%B8%D0%B5%D1%80%D0%B0%D1%80%D1%85%D0%B8%D1%8E %D0%B7%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BA%D0%BE%D0%B2."),""===c[h].text.replace(/ |\s|%C2%A0/gi,"")&&(c[h].error+="%D0%9F%D1%83%D1%81%D1%82%D0%BE%D0%B9 %D0%B7%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BE%D0%BA."),b[c[h].head]=!0,c[h].error&&(c[h].error=c[h].error.replace("undefined",""),$=!0)}let x="",g="",m=code.querySelector("meta[name=description]")||document.querySelector("meta[name=description]"),k=code.querySelector("meta[name=keywords]")||document.querySelector("meta[name=keywords]"),f=code.querySelectorAll("meta")||document.querySelectorAll("meta"),y=n.querySelectorAll("b"),u=n.querySelectorAll("strong"),_=n.querySelectorAll("em"),L=n.querySelectorAll("a"),S="",v=0,q="",T=0,w=n.querySelectorAll("img"),B=n.querySelectorAll("body [title]"),C="",A=0,N=0,E="",H=code.querySelector("link[rel=canonical]")||document.querySelector("head link[rel=canonical]"),M=code.querySelector("link[rel=next]")||document.querySelector("link[rel=next]"),O=code.querySelector("link[rel=prev]")||document.querySelector("link[rel=prev]"),z=code.querySelector("title")||document.querySelector("title"),W="";function D(e){let t=e.children,l=t.length;for(let n=0;n<l;n+=1){if(1!==t[n].nodeType)continue;if(-1!==["script","style","noscript"].indexOf(t[n].nodeName.toLowerCase())){t[n].innerHTML="";continue}let o=t[n].attributes,r=o.length;if(r>0)for(let i=0;i<r&&o[i];i++)"src"!==o[i].name&&"href"!==o[i].name&&(t[n].removeAttribute(o[i].name),i--);t[n].childNodes.length>0&&(t[n]=D(t[n])),e[n]=t[n]}return e}W=D(W=code.getElementsByTagName("body")[0].cloneNode(!0));for(let I=0;I<f.length;I+=1)"description"===f[I].name.toLowerCase()&&(m=f[I]),"keywords"===f[I].name.toLowerCase()&&(k=f[I]);z?x+=`%3Cp%3E%3Cb%20class=%22link_sim%22%20%20title=%22%D0%A1%D0%BA%D0%BE%D0%BF%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C%20title%20%D0%B2%20%D0%B1%D1%83%D1%84%D0%B5%D1%80%20%D0%BE%D0%B1%D0%BC%D0%B5%D0%BD%D0%B0%22%3ETitle%3C/b%3E%20%3Cspan%20${z.textContent.length%3C30||z.textContent.length%3E150?%22class=\%22red\%22%22:%22%22}%3E(${z.textContent.length}):%20%3C/span%3E${z.textContent}%3C/p%3E`:x+=%22%3Cp%3E%3Cb%20class=\%22red\%22%3ETitle:%20%D0%BE%D1%82%D1%81%D1%83%D1%82%D1%81%D1%82%D0%B2%D1%83%D0%B5%D1%82%3C/b%3E%3C/p%3E%22,m&&(m=m.content)?x+=`%3Cp%3E%3Cb%20class=%22link_sim%22%20title=%22%D0%A1%D0%BA%D0%BE%D0%BF%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C%20Description%20%D0%B2%20%D0%B1%D1%83%D1%84%D0%B5%D1%80%20%D0%BE%D0%B1%D0%BC%D0%B5%D0%BD%D0%B0%22%3EDescription%3C/b%3E%20%3Cspan%20${m.length%3C50||m.length%3E250?%22class=\%22red\%22%22:%22%22}%3E(${m.length}):%20%3C/span%3E${m}%3C/p%3E`:x+=%22%3Cp%3E%3Cb%20class=\%22red\%22%3EDescription:%20%D0%BE%D1%82%D1%81%D1%83%D1%82%D1%81%D1%82%D0%B2%D1%83%D0%B5%D1%82%3C/b%3E%3C/p%3E%22,k&&(k=k.content)&&(x+=`%3Cp%3E%3Cb%3EKeywords%3C/b%3E%20(${k.length}):%20${k}%3C/p%3E`);for(let%20J=0;J%3Cf.length;J+=1)(%22robots%22===f[J].name.toLowerCase()||%22yandex%22===f[J].name.toLowerCase()||%22googlebot%22===f[J].name.toLowerCase())&&(x+=`%3Cp%3E%3Cb%3Emeta%20${f[J].name}:%3C/b%3E%20${f[J].content.indexOf(%22noindex%22)+1||f[J].content.indexOf(%22nofollow%22)+1?`%3Cb%20class=%22red%22%3E${f[J].content}%3C/b%3E`:f[J].content}%3C/p%3E`);if(H&&(H=H.getAttribute(%22href%22))&&(x+=`%3Cp%3E%3Cb%3ECanonical:%3C/b%3E%20${H===location.href?`%3Ca%20href=%22${H}%22%3E${H}%3C/a%3E`:`%3Ca%20href=%22${H}%22%3E%3Cb%20class=%22red%22%3E${H}%3C/b%3E%3C/a%3E`}%3C/p%3E`),M&&(M=M.href)&&(x+=`%3Cp%3E%3Cb%3Erel=next:%20%3C/b%3E%3Ca%20href=%22${M}%22%3E${M}%3C/a%3E%3C/p%3E`),O&&(O=O.href)&&(x+=`%3Cp%3E%3Cb%3Erel=prev:%20%3C/b%3E%3Ca%20href=%22${O}%22%3E${O}%3C/a%3E%3C/p%3E`),y&&y.length%3E0&&(x+=`%3Cp%3E%3Cb%3Eb%20count:%3C/b%3E%20${y.length}%3C/p%3E`),u&&u.length%3E0&&(x+=`%3Cp%3E%3Cb%3Estrong%20count:%3C/b%3E%20${u.length}%3C/p%3E`),_&&_.length%3E0&&(x+=`%3Cp%3E%3Cb%3Eem%20count:%3C/b%3E%20${_.length}%3C/p%3E`),i&&i.length%3E0){let%20F=0,V=0;for(let%20K=0;K%3Ci.length;K+=1)F+=i[K].length,i[K].length-7%3EV&&(V=i[K].length-7);x+=`%3Cp%3E%3Cb%3EHTML%20%D0%BE%D1%82%D1%81%D1%83%D1%82%D1%81%D1%82%D0%B2%D1%83%D0%B5%D1%82:%3C/b%3E%20%3Cspan%20title=%22%D0%9A%D0%BE%D0%BB%D0%B8%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%BE%20HTML%20%D0%BA%D0%BE%D0%BC%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%80%D0%B8%D0%B5%D0%B2%22%3E${i.length}%3C/span%3E%20|%20%3Cspan%20title=%22%D0%9E%D0%B1%D1%8A%D0%B5%D0%BC%20HTML%20%D0%BA%D0%BE%D0%BC%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%80%D0%B8%D0%B5%D0%B2%20(%D1%81%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%BE%D0%B2)%22%3E${F}%3C/span%3E%20|%20%3Cspan%20title=%22%D0%94%D0%BB%D0%B8%D0%BD%D0%BD%D0%B0%20%D0%BD%D0%B0%D0%B8%D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%B5%D0%B3%D0%BE%20%D0%BA%D0%BE%D0%BC%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%80%D0%B8%D1%8F%22%3E${V}%3C/span%3E%3C/p%3E`}if(t&&t.length%3E0){let%20P=0;for(let%20R=0;R%3Ct.length;R+=1)P+=t[R].textContent.length;x+=`%3Cp%3E%3Cb%3EJS%20%D1%81%D0%BA%D1%80%D0%B8%D0%BF%D1%82%D1%8B:%3C/b%3E%20%3Cspan%20title=%22%D0%9A%D0%BE%D0%BB%D0%B8%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%BE%20%D0%B2%D0%BD%D1%83%D1%82%D1%80%D0%B5%D0%BD%D0%BD%D0%B8%D1%85%20JS%22%3E${t.length}%3C/span%3E%20|%20%3Cspan%20title=%22%D0%9E%D0%B1%D1%8A%D0%B5%D0%BC%20JS%20%D0%BA%D0%BE%D0%B4%D0%B0%20(%D1%81%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%BE%D0%B2)%22%3E${P}%3C/span%3E%3C/p%3E`}let%20j=[],G=%22%22,Q=%22%22;for(let%20U=0;U%3CL.length;U+=1)if(!j[Q=L[U].href.split(%22#%22)[0]]){try{G=decodeURIComponent(Q)}catch(X){G=Q}location.hostname===L[U].hostname?(T+=1,j[Q]=!0,q+=%60%3Cli%3E%3Ca%20href=%22${Q}%22%20target=%22_blank%22%3E${G}%3C/a%3E${L[U].rel.indexOf(%22nofollow%22)+1?%22%C2%A0%C2%A0%20%D1%82%D0%BB%20%C2%A0%C2%A0%3Cb%20style=\%22text-decoration:underline;\%22%3Enofollow%3C/b%3E%22:%22%22}%3C/li%3E%60):%22http%22===Q.substr(0,4)&&(v+=1,j[Q]=!0,S+=%60%3Cli%3E%3Ca%20href=%22${Q}%22%20target=%22_blank%22%3E${G}%3C/a%3E${L[U].rel.indexOf(%22nofollow%22)+1?%22%C2%A0%C2%A0%20%D1%82%D0%BB%20%C2%A0%C2%A0%3Cb%20style=\%22text-decoration:underline;\%22%3Enofollow%3C/b%3E%22:%22%22}%3C/li%3E%60)}for(let%20Y=0;Y%3Cw.length;Y+=1)w[Y].alt&&%22%22!==w[Y].alt&&(A+=1,N+=w[Y].alt.length,C+=%60%3Cli%3E%3Cb%3Ealt%3C/b%3E%20-%20${w[Y].alt}%3C/li%3E%60);for(let%20Z=0;Z%3CB.length;Z+=1)B[Z].title&&%22%22!==B[Z].title&&(A+=1,N+=B[Z].title.length,C+=%60%3Cli%3E%3Cb%3Etitle%3C/b%3E%20%D1%82%D0%BB%E2%80%9D%20${B[Z].title}%3C/li%3E%60);x+=%60%3Cp%3E%3Cb%3Ealt%20+%20title:%3C/b%3E%20%3Cspan%20title=%22%D0%9E%D0%B1%D1%8A%D0%B5%D0%BC%20%D0%B0%D1%82%D1%80%D0%B8%D0%B1%D1%83%D1%82%D0%BE%D0%B2%20a[alt]%20title%20(%D1%81%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%BE%D0%B2)%22%3E${N}%3C/span%3E%3C/p%3E%60,x+=%60%3Cp%3E%3Cb%3E%D0%9E%D0%B1%D1%8A%D0%B5%D0%BC%20%D1%82%D0%B5%D0%BA%D1%81%D1%82%D0%B0:%3C/b%3E%20%3Cspan%20title=%22%D0%A1%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%BE%D0%B2%20%D0%B1%D0%B5%D0%B7%20%D0%BF%D1%80%D0%BE%D0%B1%D0%B5%D0%BB%D0%BE%D0%B2%22%3E${r.replace(/\s/gi,%22%22).length}%3C/span%3E%20|%20%3Cspan%20title=%22%D0%A1%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%BE%D0%B2%20%D1%81%20%D0%BF%D1%80%D0%BE%D0%B1%D0%B5%D0%BB%D0%B0%D0%BC%D0%B8%22%3E${r.length}%3C/span%3E%3C/p%3E%60;for(let%20ee=0;ee%3Cc.length;ee+=1)E+=%60%3Cli%20style=%22margin-left:${(c[ee].head-1)*20}px%22${c[ee].error?%60%20class=%22red%22%20title=%22${c[ee].error}%22%60:%22%22}%3E%3Cspan%3EH${c[ee].head}%20-%20${c[ee].text}%3C/span%3E%3C/li%3E%60;g+=%22%3Cp%3E%22,g+=%60%3Cb%20class=%22openLinksB%22%20data=%22pxexternallinks%22%3EExternal%20Links%20(${v})%3C/b%3E%C2%A0%C2%A0|%C2%A0%C2%A0%60,g+=%60%3Cb%20class=%22openLinksB%22%20data=%22pxinternallinks%22%3EInternal%20Links%20(${T})%3C/b%3E%C2%A0%C2%A0|%C2%A0%C2%A0%60,g+=%60%3Cb%20class=%22openLinksB%22%20data=%22pxalttitlelinks%22%3EImg%20alt/title%20(${A})%3C/b%3E%C2%A0%C2%A0|%C2%A0%C2%A0%60,g+=%60%3Cb%20class=%22openLinksB%22%20data=%22pxh16links%22%3EH1-H6%20${$?%60%3Cspan%20class=%22red%22%3E(${c.length})%60:%60(${c.length})%60}%3C/b%3E%C2%A0%C2%A0|%C2%A0%C2%A0%60,g+=%22%3Cb%20class=\%22openLinksB\%22%20data=\%22pxtext\%22%3E%D0%A2%D0%B5%D0%BA%D1%81%D1%82%3C/b%3E%22,g+=%22%3C/p%3E%22;let%20et=document.createElement(%22style%22);et.setAttribute(%22type%22,%22text/css%22),et.innerHTML=%22.pixelTopBlockWrp{position:relative;width:100%;top:0;left:0;background:#f8f8f8;z-index:999999;text-align:left;border-bottom:1px%20solid%20#9D9DA1;color:#000;font-family:arial;max-height:50%;overflow-y:auto;}.pixelTopBlockWrp%20.close%20{float:right;cursor:pointer;color:#000;font-size:%2024px;line-height:%200;padding:%208px%200%200;}.topBlock{padding:5px%2010px;font-size:14px;line-height:%2016px;}.topBlock%20p{margin:0%200%200.3em%200%20!important;%20padding:0px;%20line-height:%201.2em;font-size:14px;}.pxtblocklinks%20OL{margin:0px%2015px;padding:0%200%200%2040px;list-style:decimal;display:none;}.pxtblocklinks%20OL%20LI%20{color:%20#000;margin-bottom:%203px;display:block;font-size:14px;}.pxtblocklinks%20{width:70%;left:15%;position:relative;background:#fff;z-index:99999;box-shadow:0%203px%2010px%20#000;font-size:14px;word-wrap:%20break-word;}.pxexternallinks,%20.pxinternallinks,%20.pxalttitlelinks,%20.pxh16links{margin:0px%2015px;padding:%200%200%200%2020px;list-style:decimal;display:none;height:500px;overflow:auto;}%20.pxh16links%20span:hover%20{cursor:pointer;border-bottom:1px%20solid;}.openLinksB{border-bottom:1px%20dashed%20#000;cursor:pointer;}%20.openLinksB:hover%20{border-bottom:%20none;}%20.pixelTopBlockWrp%20b,%20p{color:#000;}.pxtblocklinks%20a{color:#000;text-decoration:none;}%20.pxtblocklinks%20a:hover{border-bottom:1px%20solid;}.pixelTopBlockWrp%20b{font-weight:bold;}.topBlock%20.red,%20.pxtblocklinks%20.red%20{color:red;}%20.link_sim{text-decoration:underline;}%20.link_sim:hover{cursor:pointer;%20text-decoration:none;color:blue;}%20.topBlock%20a{color:black;}%20.pxtext{margin:0px%2015px;padding:%200%2020px%200%2020px%20!important;display:none;height:500px;overflow:auto;}%20.pxtext%20a%20{color:#0000ee;}%22,document.getElementsByTagName(%22body%22)[0].appendChild(et);let%20el=document.createElement(%22div%22);el.className=%22pixelTopBlockWrp%22,el.innerHTML=%60%3Cdiv%20class=%22topBlock%22%3E%3Cb%20class=%22close%22%3E\u00d7%3C/b%3E${x}${g}%3C/div%3E%60;let%20en=document.getElementsByTagName(%22body%22)[0].childNodes[0],eo=document.createElement(%22div%22);eo.className=%22pxtblocklinks%22,eo.innerHTML=%60%3Col%20class=%22pxexternallinks%22%3E${S}%3C/ol%3E%3Col%20class=%22pxinternallinks%22%3E${q}%3C/ol%3E%3Col%20class=%22pxalttitlelinks%22%3E${C}%3C/ol%3E%3Col%20class=%22pxh16links%22%20style=%22list-style:none;%22%3E${E}%3C/ol%3E%3Col%20class=%22pxtext%22%3E${W.innerHTML}%3C/ol%3E%60;let%20er=document.createElement(%22div%22);er.style=%22position:fixed;z-index:9999999999999;width:100%;top:0px;left:0px;%22,er.className=%22pxtblock%20pxtagblock%22,er.appendChild(el),er.appendChild(eo),document.getElementsByTagName(%22body%22)[0].insertBefore(er,en),document.querySelector(%22div.pxtagblock%20b.close%22).onclick=()=%3E{let%20e=document.querySelector(%22div.pxtagblock%22);document.getElementsByTagName(%22body%22)[0].removeChild(e)};let%20ei=document.querySelectorAll(%22b.link_sim%22);for(let%20ea=0;ea%3Cei.length;ea+=1)ei[ea].onclick=e=%3E{let%20t=document.createElement(%22textarea%22),l=document.querySelector(%22body%22);l.appendChild(t),t.innerHTML=e.target.parentNode.lastChild.nodeValue,t.select(),document.execCommand(%22copy%22),l.removeChild(t)};let%20es=document.querySelectorAll(%22div.pxtagblock%20b.openLinksB%22),ep=document.querySelectorAll(%22div.pxtblocklinks%20ol%22);for(let%20ec=0;ec%3Ces.length;ec+=1)es[ec].onclick=e=%3E{for(let%20t=0;t%3Cep.length;t+=1){let%20l=ep[t];e.target.getAttribute(%22data%22)!==l.className?(l.classList.remove(%22active%22),l.style.display=%22none%22):l.classList.contains(%22active%22)?(l.classList.remove(%22active%22),l.style.display=%22none%22):(l.classList.add(%22active%22),l.style.display=%22block%22)}}})();
Advertisement
Add Comment
Please, Sign In to add comment