File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1043,14 +1043,13 @@ var siteInfo = [
10431043 const re = / ^ h t t p s ? : \/ \/ (?: w w w \. ) ? (?: ( r e a l b o o r u \. c o m | r u l e 3 4 \. x x x ) ) \/ i n d e x \. p h p \? p a g e = p o s t & s = v i e w & i d = ( \d + ) .* / ;
10441044 const m = a . href . match ( re ) ;
10451045 if ( m ) {
1046- return m [ 1 ] == "rule34.xxx" ? `https://api. ${ m [ 1 ] } /index.php?page=dapi&s=post&q=index&id= ${ m [ 2 ] } &json=1` : `https:// ${ m [ 1 ] } /index.php?page=dapi&s=post&q=index&id= ${ m [ 2 ] } &json=1` ;
1046+ return a . href ;
10471047 }
10481048 } ,
10491049 query : function ( html , doc , url ) {
10501050 try {
1051- const o = JSON . parse ( html ) ;
1052- let url = o [ 0 ] ;
1053- return url . file_url || `https://${ location . hostname } /images/${ url . directory } /${ url . image } ` ;
1051+ const o = doc . querySelector ( ".link-list>ul>li>a[href^=http]" ) ;
1052+ return o && o . href ;
10541053 } catch { }
10551054 }
10561055 }
You can’t perform that action at this time.
0 commit comments