File tree Expand file tree Collapse file tree 1 file changed +25
-3
lines changed
Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -1558,10 +1558,32 @@ var siteInfo = [
15581558 {
15591559 name : "Sankaku Complex" ,
15601560 url :/ s a n k a k u c o m p l e x \. c o m / ,
1561- src :/ \/ d a t a \/ p r e v i e w \/ / ,
15621561 xhr :{
1563- url : "a" ,
1564- query : "img#image"
1562+ url : function ( a , p ) {
1563+ const re = / ^ h t t p s ? : \/ \/ (?: w w w \. ) ? ( (?: i d o l | c h a n ) \. ) ? ( s a n k a k u ) c o m p l e x ( \. c o m \/ ) (?: \w { 2 } \/ ) ? ( p o s t ) s ? \/ (?: s h o w \/ ) ? ( [ a - z A - Z 0 - 9 ] + ) .* / ;
1564+ const $ = a && a . href . match ( re ) ;
1565+ if ( $ ) {
1566+ return ! $ [ 1 ] ? `https://${ $ [ 2 ] } api${ $ [ 3 ] + $ [ 4 ] } s/${ $ [ 5 ] } /fu` : $ [ 0 ] ;
1567+ }
1568+ } ,
1569+ query : function ( html , doc , url ) {
1570+ const re = / ^ h t t p s ? : \/ \/ ( (?: i d o l | c h a n | w w w ) \. ) ? ( s a n k a k u ) c o m p l e x ( \. c o m \/ ) (?: \w { 2 } \/ ) ? ( p o s t ) s ? \/ (?: s h o w \/ ) ? ( [ a - z A - Z 0 - 9 ] + ) .* / ;
1571+ const $ = url . match ( re ) ;
1572+ if ( html [ 0 ] !== '{' ) return ;
1573+ let meta = document . querySelector ( 'head > meta[name="referrer"]' ) ;
1574+ if ( ! meta ) {
1575+ meta = document . createElement ( 'meta' ) ;
1576+ meta . name = 'referrer' ;
1577+ meta . content = 'same-origin' ;
1578+ document . getElementsByTagName ( 'head' ) [ 0 ] . appendChild ( meta ) ;
1579+ } else if ( meta . attributes . content . value !== 'same-origin' ) {
1580+ meta . attributes . content . value = 'same-origin' ;
1581+ }
1582+ let lowres_url , highres_url ;
1583+ lowres_url = html . match ( / (?: (?: R e s i z e d : < a | < a i d = " l o w r e s " [ ^ > ] + ?) h r e f = | s a m p l e _ u r l " : ? ) " ( [ ^ " ] + ) / ) ?. [ 1 ] ;
1584+ highres_url = html . match ( / (?: (?: O r i g i n a l : < a | < a i d = " h i g h r e s " [ ^ > ] + ?) h r e f = " | f i l e _ u r l " : " ? ) ( [ ^ ( , " ) ] + ) / ) ?. [ 1 ] ;
1585+ return highres_url ;
1586+ }
15651587 }
15661588 } ,
15671589 {
You can’t perform that action at this time.
0 commit comments