File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66// @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures or find the HD original picture automatically
77// @description :zh-CN NLF 的围观图修改版,增加高清原图查找显示(在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存、查找原图)
88// @description :zh-TW NLF 的圍觀圖修改版,增加高清原圖查詢顯示(線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存、查詢原圖)
9- // @version 2017.8.5 .1
9+ // @version 2017.8.11 .1
1010// @created 2011-6-15
1111// @namespace http://userscripts.org/users/NLF
1212// @homepage http://hoothin.com
191191 getImage :function ( img ) {
192192 var src = img . src ;
193193 var reg = / ^ ( h t t p : \/ \/ i m g s r c \. b a i d u \. c o m \/ f o r u m \/ ) a b ( p i c \/ i t e m \/ [ \w . ] + ) / i ;
194- var portrait = / h i m g . b a i d u . c o m \/ s y s \/ p o r t r a i t / ;
194+ var portrait = / \/ s y s \/ p o r t r a i t / ;
195195 var result = src . match ( reg ) ;
196196 //帖子列表页面
197197 if ( portrait . test ( src ) ) {
198- return src . replace ( / h i m g . b a i d u . c o m \/ s y s \/ p o r t r a i t / , "himg.baidu.com /sys/portraitl" ) ;
198+ return src . replace ( / \/ s y s \/ p o r t r a i t / , "/sys/portraitl" ) ;
199199 } else if ( result ) { //小图的时候
200200 return result [ 1 ] + result [ 2 ] ;
201201 } else { //小图点击之后的较大图,或者帖子内容页面的图片。
606606 getImage : function ( ) {
607607 return this . src . replace ( / p x i m g \. n e t \/ c \/ \d + x \d + \/ i m g - m a s t e r \/ i m g \/ ( .* ) _ [ ^ _ ] + ( \. [ a - z ] + ) $ / i, "pximg.net/img-original/img/$1$2" ) ;
608608 }
609+ } ,
610+ { name : "Wallhaven" ,
611+ url : / w a l l h a v e n \. / ,
612+ getImage : function ( ) {
613+ return this . src . replace ( / w a l l p a p e r s \/ t h u m b \/ s m a l l \/ t h / i, "wallpapers/full/wallhaven" ) ;
614+ }
609615 }
610616 ] ;
611617
You can’t perform that action at this time.
0 commit comments