File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1004,15 +1004,15 @@ var siteInfo = [
10041004 if ( ! img ) return ;
10051005 newsrc = img . src ;
10061006 }
1007- return newsrc . replace ( / \? .* $ / i, "" ) ;
1007+ return newsrc . replace ( / \? .* $ / i, "" ) . replace ( / \/ a n _ w e b p \/ ( [ ^ \/ ] + ) \/ m q d e f a u l t _ 6 s \. w e b p / , "/vi/$1/hqdefault.jpg" ) ;
10081008 } ,
10091009 getImage : function ( a , p ) {
10101010 var newsrc = this . src ;
10111011 if ( p [ 2 ] && this . classList . contains ( 'ytd-moving-thumbnail-renderer' ) ) {
10121012 newsrc = p [ 2 ] . querySelector ( "img" ) . src ;
10131013 }
10141014 if ( ! newsrc || newsrc . indexOf ( "i.ytimg.com" ) == - 1 ) return ;
1015- return newsrc . replace ( / \? .* $ / i, "" ) ;
1015+ return newsrc . replace ( / \? .* $ / i, "" ) . replace ( / \/ a n _ w e b p \/ ( [ ^ \/ ] + ) \/ m q d e f a u l t _ 6 s \. w e b p / , "/vi/$1/hqdefault.jpg" ) ;
10161016 }
10171017 } ,
10181018 {
@@ -1559,13 +1559,7 @@ var siteInfo = [
15591559 name : "Sankaku Complex" ,
15601560 url :/ s a n k a k u c o m p l e x \. c o m / ,
15611561 xhr :{
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- } ,
1562+ url : [ "^https?://(?:www\\.)?(sankaku)complex(\\.com/)(?:\\w{2}/)?(post)s?/(?:show/)?([a-zA-Z0-9]+).*" , "https://$1api$2$3s/$4/fu" ] ,
15691563 query : function ( html , doc , url ) {
15701564 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 ] + ) .* / ;
15711565 const $ = url . match ( re ) ;
You can’t perform that action at this time.
0 commit comments