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.7.1
9+ // @version 2017.3.7.2
1010// @created 2011-6-15
1111// @namespace http://userscripts.org/users/NLF
1212// @homepage http://hoothin.com
@@ -8418,9 +8418,9 @@ background-image:url("'+ prefs.icons.magnifier +'");\
84188418 let imgs = googleHtml . querySelectorAll ( "div.rg_meta" ) ;
84198419 if ( imgs . length == 0 ) { searchNext ( ) ; return ; }
84208420 srcs = [ ] ;
8421- for ( let img of imgs ) {
8421+ for ( var i = 0 ; i < imgs . length ; i ++ ) {
84228422 if ( srcs . length > 2 ) break ;
8423- let jsonData = JSON . parse ( img . innerHTML ) ;
8423+ let jsonData = JSON . parse ( imgs [ i ] . innerHTML ) ;
84248424 srcs . push ( jsonData . ou ) ;
84258425 }
84268426 setSearchState ( "谷歌识图结束,共找到" + srcs . length + "张匹配图片" ) ;
@@ -8439,9 +8439,9 @@ background-image:url("'+ prefs.icons.magnifier +'");\
84398439 let searchImg = tineyeHtml . querySelectorAll ( "div.matches>div>div>div>div:first-of-type>p.hidden-xs:first-of-type>a" ) ;
84408440 if ( searchImg . length > 0 ) {
84418441 srcs = [ ] ;
8442- for ( let img of searchImg ) {
8442+ for ( var i = 0 ; i < searchImg . length ; i ++ ) {
84438443 if ( srcs . length > 2 ) break ;
8444- srcs . push ( img . href ) ;
8444+ srcs . push ( searchImg [ i ] . href ) ;
84458445 }
84468446 setSearchState ( "Tineye识图结束,共找到" + srcs . length + "张匹配图片" ) ;
84478447 callBackFun ( srcs ) ;
You can’t perform that action at this time.
0 commit comments