File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -1027,10 +1027,25 @@ var siteInfo = [
10271027 } ,
10281028 {
10291029 name : "Rule34" ,
1030- url : / \b r u l e 3 4 \. x x x / ,
1030+ url : / \b ( r u l e 3 4 \. x x x | r e a l b o o r u \. c o m ) / ,
10311031 src : / \/ ( t h u m b n a i l s | s a m p l e s ) \/ ( .* ) \/ ( t h u m b n a i l | s a m p l e ) _ / i,
1032- r : / \/ ( t h u m b n a i l s | s a m p l e s ) \/ ( .* ) \/ ( t h u m b n a i l | s a m p l e ) _ ( .* ) \. .* / i,
1033- s : [ "/images/$2/$4.jpeg" , "/images/$2/$4.png" , "/images/$2/$4.jpg" ]
1032+ xhr : {
1033+ url : function ( a , p ) {
1034+ if ( ! a ) return ;
1035+ 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 + ) .* / ;
1036+ const m = a . href . match ( re ) ;
1037+ if ( m ) {
1038+ 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` ;
1039+ }
1040+ } ,
1041+ query : function ( html , doc , url ) {
1042+ try {
1043+ const o = JSON . parse ( html ) ;
1044+ let url = o [ 0 ] ;
1045+ return url . file_url || `https://${ location . hostname } /images/${ url . directory } /${ url . image } ` ;
1046+ } catch { }
1047+ }
1048+ }
10341049 } ,
10351050 {
10361051 name : "Photosight" ,
You can’t perform that action at this time.
0 commit comments