Home | History | Annotate | Download | only in js

Lines Matching defs:yd

486 function Yd(a){var b,c,d;c=(d=a.getAttribute(pw)||$u,co(Wd,d)?ti(go(Wd,d),15):(De(),Ce));switch(c.c){case 0:b=new pe;break;case 1:b=new me;break;case 2:b=new ve;break;case 3:b=new se;break;case 4:b=new He;break;default:return null;}return b}
513 function yd(){var a,b,c,d,e,f;c=$wnd.location.pathname;f=(Xe(),Lp(c,Vv,0));Ps(new Is(f));a=new qs;for(b=0;b<f.length;++b){e=f[b];if(e.indexOf(jv)!=-1){d=Lp(e,Wv,0)[1];af(d,'[^a-zA-Z]')||(e=Lp(e,Wv,0)[0])}e=Ye(e,',00',$u);b<2&&(e=Ye(e,'((_|-)?p[a-z]*|(_|-))[0-9]{1,2}$',$u));if(!e.length)continue;if(b<2&&af(e,'^\\d{1,2}$'))continue;if(b==0&&Dp(e,'index'))continue;if(b<2&&e.length<3&&!af(f[0],'[a-z]')){continue}li(a.b,a.c++,e)}return $wnd.location.protocol+'//'+$wnd.location.host+Vv+Bd(a)}
522 function _d(a,b,c){var d,e,f,g,h,i,j,k,l,m;h=null;g=b.hasAttribute('ITEMSCOPE')&&b.hasAttribute(pw);i=c?ce(b):ji(Zk,Ku,1,0,0);if(g){h=Yd(b);!!h&&h.d!=(De(),Ce)&&(!c||c.d!=(De(),Ce)||i.length==0)&&js(a.c,h)}if(i.length>0&&c.d!=(De(),Ce)&&(!h||h.d!=(De(),Ce))){for(f=0;f<i.length;++f){h?(co(c.b,i[f])&&lo(c.b,i[f],h),undefined):ge(c,i[f],(j=$u,k=b.tagName,co(Vd,k)&&(j=bi(b,ti(go(Vd,k),1))),!j.length&&(j=b.textContent),j))}}!a.b.length&&(a.b=(l=$u,m=b.tagName,(Dp(m,av)||Dp(m,lw))&&Dp(b.getAttribute('REL')||$u,Qv)&&(l=b.textContent),l));e=b.childNodes;for(f=0;f<e.length;++f){d=e[f];if(d.nodeType!=1)continue;_d(a,d,h?h:c)}}
532 function zd(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,q,r,s,t,u,v,w,x,y,z,A,B;Ub();Tb>=3&&ao(vd);d=yd();A=Ye($wnd.location.href,Xv,$u);c=b.getElementsByTagName(av);w=new yo;for(f=0;f<c.length;++f){h=c[f];z=h.offsetWidth||0;e=h.offsetHeight||0;if(z==0||e==0){xd(h,'ignored: sz='+z+Yv+e);continue}if(!jb(h)){xd(h,'ignored: invisible');continue}j=Ye(Ye(h.href,'#.*$',$u),Xv,$u);if(!j.length||!af(j,'^https?://')||Dp(j,A)||Dp(j,d)){xd(h,'ignored: empty or same as current or base url'+d);continue}y=(Xe(),Lp(j,'\\/+',0));if(y.length<3||!Dp($wnd.location.host,y[1])){xd(h,'ignored: different domain');continue}m=hb(h);if(af(m,Zv)||m.length>25){xd(h,'ignored: one of extra');continue}k=Ye(j,d,$u);if(!af(k,'\\d')){xd(h,'ignored: no number beyond base url '+d);continue}l=null;if(j==null?w.d:j!=null?Gv+j in w.f:jo(w,null,~~_p(null))){l=ti(j==null?w.c:j!=null?w.f[Gv+j]:ho(w,null,~~_p(null)),9);l.d+=' | '+m}else{l=new Dd(f,m,j);j==null?no(w,l):j!=null?oo(w,j,l):mo(w,null,l,~~_p(null))}if(j.indexOf(d)!=0){l.e-=25;xd(h,$v+l.e+': not part of base url '+d)}i=m+qv+h.className+qv+h.id;xd(h,'txt+class+id='+i);if(af(i,_v)){l.e+=50;xd(h,$v+l.e+': has next')}if(af(i,aw)){l.e+=25;xd(h,$v+l.e+': has pag* word')}if(af(i,'(first|last)')){if(!af(l.d,_v)){l.e-=65;xd(h,$v+l.e+': has first|last but no next regex')}}if(af(i,bw)||af(i,Zv)){l.e-=50;xd(h,$v+l.e+': has neg or extra regex')}if(af(i,'(prev|early|old|new|<|\xAB)')){l.e-=200;xd(h,$v+l.e+': has opp of next regex')}u=false;o=false;s=ci(h);while(!!s&&(!u||!o)){t=s.className+qv+s.id;if(!u&&af(t,aw)){l.e+=25;u=true;xd(h,$v+l.e+': posParent - '+t)}if(!o&&af(t,bw)){if(!af(t,'article|body|content|entry|hentry|main|page|pagination|post|text|blog|story')){l.e-=25;o=true;xd(h,$v+l.e+': negParent - '+t)}}s=ci(s)}if(af(j,'p(a|g|ag)?(e|ing|ination)?(=|\\/)[0-9]{1,2}')||af(j,'(page|paging)')){l.e+=25;xd(h,$v+l.e+': has paging info')}if(af(j,Zv)){l.e-=15;xd(h,$v+l.e+': has extra regex')}n=0;try{n=gp(m)}catch(a){a=_k(a);if(!vi(a,29))throw a}if(n>0){n==1?(l.e-=10):(l.e+=0>10-n?0:10-n);xd(h,$v+l.e+': linktxt is a num')}}x=null;if(w.e!=0){v=(B=new Jq(w),new Sr(w,B));g=Rr(v);while(pr(g.b.b)){q=ti(Xr(g),9);q.e>=50&&(!x||x.e<q.e)&&(x=q)}}r=null;if(x){r=Ye(x.b,Xv,$u);xd(c[x.c],'found: score='+x.e+cw+x.d+'], '+r)}Tb>=3&&Ad(r,c);return r}