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 2019.7.26 .1
9+ // @version 2019.7.31 .1
1010// @created 2011-6-15
1111// @namespace http://userscripts.org/users/NLF
1212// @homepage http://hoothin.com
12491249 newsrc = oldsrc . replace ( / \. m d ( \. [ ^ \. ] + ) $ / i, "$1" ) ;
12501250 } else if ( / \. 1 2 6 \. n e t .* \/ \d + \. \d + x \d + \. \d + \. [ ^ \. ] + $ / . test ( oldsrc ) ) {
12511251 newsrc = oldsrc . replace ( / \/ \d + \. \d + x \d + \. \d + \. ( [ ^ \. ] + ) $ / i, "/5.5000x5000.100.$1" ) ;
1252- } else if ( / \. y t i m g \. c o m / . test ( oldsrc ) ) {
1252+ } else if ( / \. y t i m g \. c o m / . test ( oldsrc ) && ! / m q d e f a u l t _ 6 s / . test ( oldsrc ) ) {
12531253 newsrc = oldsrc . replace ( / \? .* $ / i, "" ) ;
12541254 } else if ( / m e i t u a n \. n e t \/ .* \/ a v a t a r \/ / . test ( oldsrc ) ) {
12551255 newsrc = oldsrc . replace ( / \/ a v a t a r \/ \w { 2 } / i, "/avatar/o0" ) ;
@@ -8814,7 +8814,9 @@ left: -45px;\
88148814 try {
88158815 src = decodeURIComponent ( src ) ;
88168816 } catch ( e ) { }
8817-
8817+ if ( ! srcs && imgSrc != src ) {
8818+ srcs = [ imgSrc ] ;
8819+ }
88188820 var ret = {
88198821 src : src , // 得到的src
88208822 srcs : srcs , // 多个 src,失败了会尝试下一个
You can’t perform that action at this time.
0 commit comments