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 2018.1.4 .1
9+ // @version 2018.1.19 .1
1010// @created 2011-6-15
1111// @namespace http://userscripts.org/users/NLF
1212// @homepage http://hoothin.com
10221022 }
10231023 var original = this . getAttribute ?this . getAttribute ( 'data-original' ) :"" ;
10241024 if ( original && original != oldsrc ) return original ;
1025- else if ( / \. s i n a i m g \. ( c n | c o m ) \/ m w \d + \/ / . test ( oldsrc ) ) {
1025+ else if ( / a t t a c h m e n t \. p h p \? a t t a c h m e n t i d = \d + / . test ( oldsrc ) ) {
1026+ newsrc = oldsrc . replace ( / ( a t t a c h m e n t \. p h p \? a t t a c h m e n t i d = \d + ) .* / , "$1" ) ;
1027+ } else if ( / \. s i n a i m g \. ( c n | c o m ) \/ m w \d + \/ / . test ( oldsrc ) ) {
10261028 newsrc = oldsrc . replace ( / .* ( h t t p s ? : \/ \/ [ ^ \. ] + \. s i n a i m g \. ( c n | c o m ) ) \/ m w \d + \/ / , "$1/large/" ) ;
10271029 } else if ( / g r a v a t a r \. c o m \/ a v a t a r \/ .* [ \? & ] s = / . test ( oldsrc ) ) {
10281030 newsrc = oldsrc . replace ( / ( g r a v a t a r \. c o m \/ a v a t a r \/ .* [ \? & ] s = ) .* / , "$1500" ) ;
11031105 } ,
11041106 { name : "ali2" ,
11051107 r : / ( .* \. a l i c d n \. c o m \/ .* ?) ( ( \. | _ ) \d + x \d + .* | \. s e a r c h ) \. j p g ( _ \. w e b p ) ? $ / ,
1106- s : "$1 .jpg"
1108+ s : "$1_800x800 .jpg"
11071109 } ,
11081110 { name : "1号店" ,
11091111 r : / ( .* \. y i h a o d i a n i m g \. c o m \/ .* ) _ \d + x \d + \. j p g $ / ,
You can’t perform that action at this time.
0 commit comments