Skip to content

Commit 706b2a1

Browse files
committed
fix
1 parent 67ffcbb commit 706b2a1

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 13 additions & 13 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 2018.7.7.1
9+
// @version 2018.7.10.1
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -3945,18 +3945,18 @@
39453945
iStatisCopy[item.type].count++;
39463946
var spanMark=document.createElement("span");
39473947
thumbnails.appendChild(spanMark);
3948-
spanMark.outerHTML = '<span class="pv-gallery-sidebar-thumb-container' +
3949-
'" data-type="' + item.type +
3950-
'" data-src="' + item.src +
3951-
'" data-srcs="' + (item.srcs?item.srcs.join(","):"") +
3952-
(item.xhr ? '" data-xhr="' + encodeURIComponent(JSON.stringify(item.xhr)) : '') +
3953-
'" data-description="' + encodeURIComponent(item.description || '') +
3954-
'" data-thumb-src="' + item.imgSrc +
3955-
'" title="' + (item.img?item.img.title:"") +
3956-
'">' +
3957-
'<span class="pv-gallery-vertical-align-helper"></span>' +
3958-
'<span class="pv-gallery-sidebar-thumb-loading" title="'+i18n("loading")+'......"></span>' +
3959-
'</span>';
3948+
try{
3949+
spanMark.className="pv-gallery-sidebar-thumb-container";
3950+
spanMark.dataset.type=item.type;
3951+
spanMark.dataset.src=item.src;
3952+
spanMark.dataset.srcs=item.srcs;
3953+
if(item.xhr)spanMark.dataset.xhr=encodeURIComponent(JSON.stringify(item.xhr));
3954+
spanMark.dataset.description=encodeURIComponent(item.description || '');
3955+
spanMark.dataset.thumbSrc=item.imgSrc;
3956+
spanMark.title=(item.img?item.img.title:"");
3957+
spanMark.innerHTML='<span class="pv-gallery-vertical-align-helper"></span>' +
3958+
'<span class="pv-gallery-sidebar-thumb-loading" title="'+i18n("loading")+'......"></span>';
3959+
}catch(e){};
39603960
});
39613961

39623962
var self = this;

0 commit comments

Comments
 (0)