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.3.12.1
9+ // @version 2017.3.12.2
1010// @created 2011-6-15
1111// @namespace http://userscripts.org/users/NLF
1212// @homepage http://hoothin.com
@@ -3411,8 +3411,17 @@ padding-left:24px;">'+shareItem.name+'</span>');
34113411 if ( ! pageObj . next ) return ;
34123412 var nextUrl = pageObj . next ;
34133413 if ( nextUrl . tagName != "A" ) {
3414- nextUrl = nextUrl . querySelector ( "a" ) ;
3415- if ( ! nextUrl ) return ;
3414+ var childA = nextUrl . querySelector ( "a" ) ;
3415+ if ( childA ) {
3416+ nextUrl = childA ;
3417+ } else {
3418+ while ( nextUrl = nextUrl . parentElement ) {
3419+ if ( nextUrl . nodeName == 'A' ) {
3420+ break ;
3421+ }
3422+ }
3423+ if ( ! nextUrl ) return ;
3424+ }
34163425 }
34173426 var self = this ;
34183427 GM_xmlhttpRequest ( {
You can’t perform that action at this time.
0 commit comments