|
6 | 6 | // @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures or find the HD original picture automatically |
7 | 7 | // @description:zh-CN NLF 的围观图修改版,增加高清原图查找显示(在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存、查找原图) |
8 | 8 | // @description:zh-TW NLF 的圍觀圖修改版,增加高清原圖查詢顯示(線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存、查詢原圖) |
9 | | -// @version 2017.1.19.1 |
| 9 | +// @version 2017.2.14.1 |
10 | 10 | // @created 2011-6-15 |
11 | 11 | // @namespace http://userscripts.org/users/NLF |
12 | 12 | // @homepage http://hoothin.com |
|
226 | 226 |
|
227 | 227 | // 这个网址大图会出错 |
228 | 228 | // http://movie.douban.com/subject/25708579/discussion/58950206/ |
229 | | - if(/movie\.douban\.com\/subject/.test(location.href)){ |
| 229 | + if(/movie\.douban\.com\/subject\/\d+\/discussion/.test(location.href)){ |
230 | 230 | } else if (pic.test(oldsrc)) { |
231 | 231 | newsrc = oldsrc.replace(pic, '/view/photo/raw/public/'); |
232 | 232 | } else if (movieCover.test(oldsrc)) { |
@@ -4855,7 +4855,7 @@ left:0px;\ |
4855 | 4855 | this.searchButton=searchButton; |
4856 | 4856 | var srcs, from; |
4857 | 4857 | img.onerror=function(e){ |
4858 | | - setSearchState("原图加载失败,尝试加载下一结果……"); |
| 4858 | + setSearchState(img.src+" 原图加载失败,尝试加载下一结果……"); |
4859 | 4859 | var src=self.srcs.shift(); |
4860 | 4860 | if(src)img.src=src; |
4861 | 4861 | else{ |
@@ -8357,7 +8357,7 @@ background-image:url("'+ prefs.icons.magnifier +'");\ |
8357 | 8357 | getUrl("https://www.tineye.com/search?url="+encodeURIComponent(imgSrc)+"&sort=size", function(d){ |
8358 | 8358 | let tineyeHtml=document.implementation.createHTMLDocument(''); |
8359 | 8359 | tineyeHtml.documentElement.innerHTML = d.responseText; |
8360 | | - let searchImg=tineyeHtml.querySelectorAll("div.matches>div>div>div>div>p.hidden-xs>a"); |
| 8360 | + let searchImg=tineyeHtml.querySelectorAll("div.matches>div>div>div>div:first-of-type>p.hidden-xs:first-of-type>a"); |
8361 | 8361 | if(searchImg.length>0){ |
8362 | 8362 | srcs=[]; |
8363 | 8363 | for(let img of searchImg){ |
|
0 commit comments