Skip to content

Commit 3db34b0

Browse files
committed
tineye need different img
1 parent 30923a8 commit 3db34b0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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.1.19.1
9+
// @version 2017.2.14.1
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -226,7 +226,7 @@
226226

227227
// 这个网址大图会出错
228228
// 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)){
230230
} else if (pic.test(oldsrc)) {
231231
newsrc = oldsrc.replace(pic, '/view/photo/raw/public/');
232232
} else if (movieCover.test(oldsrc)) {
@@ -4855,7 +4855,7 @@ left:0px;\
48554855
this.searchButton=searchButton;
48564856
var srcs, from;
48574857
img.onerror=function(e){
4858-
setSearchState("原图加载失败,尝试加载下一结果……");
4858+
setSearchState(img.src+" 原图加载失败,尝试加载下一结果……");
48594859
var src=self.srcs.shift();
48604860
if(src)img.src=src;
48614861
else{
@@ -8357,7 +8357,7 @@ background-image:url("'+ prefs.icons.magnifier +'");\
83578357
getUrl("https://www.tineye.com/search?url="+encodeURIComponent(imgSrc)+"&sort=size", function(d){
83588358
let tineyeHtml=document.implementation.createHTMLDocument('');
83598359
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");
83618361
if(searchImg.length>0){
83628362
srcs=[];
83638363
for(let img of searchImg){

0 commit comments

Comments
 (0)