Skip to content

Commit 4d59fc4

Browse files
committed
fix
1 parent a4d3ac0 commit 4d59fc4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 4 additions & 3 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.4.16.2
9+
// @version 2018.4.16.3
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -4599,7 +4599,8 @@
45994599
<span>↑</span>\
46004600
</div>\
46014601
<body class="'+prefs.gallery.exportType+'">\
4602-
<img id="bigImg" style="pointer-events:none;position:fixed;z-index:999;max-height:100vh;top:0px;">\
4602+
<p style="width:100vw;display:flex;flex-direction:column;">\
4603+
<img id="bigImg" style="pointer-events:none;position:fixed;z-index:999;max-height:100vh;top:0px;align-self:center;"></p>\
46034604
<p>【'+i18n("picTitle")+'】:' + title + '</p>\
46044605
<p>【'+i18n("picNum")+'】:' + nodes.length + ' <select onchange="document.body.className=this.options[this.options.selectedIndex].value"><option value="grid" '+(prefs.gallery.exportType=="grid"?"selected='selected'":"")+'>'+i18n("grid")+'</option><option value="gridBig" '+(prefs.gallery.exportType=="gridBig"?"selected='selected'":"")+'>'+i18n("gridBig")+'</option><option value="list" '+(prefs.gallery.exportType=="list"?"selected='selected'":"")+'>'+i18n("list")+'</option> </select> \
46054606
<input type="button" value="'+i18n("exportImagesUrl")+'" onclick="var imgStr=\'\',selList=document.querySelectorAll(\'.select>img\');if(selList.length==0)[].forEach.call(document.querySelectorAll(\'img\'),function(i){imgStr+=i.src+\' \\n\'});else{[].forEach.call(selList,function(i){imgStr+=i.src+\' \\n\'});}window.prompt(\''+i18n("exportImagesUrlPop")+'\',imgStr);">\
@@ -4611,7 +4612,7 @@
46114612
document.body.scrollIntoView();\
46124613
});\
46134614
[].forEach.call(document.querySelectorAll("div>img"),function(i){\
4614-
i.onmouseover=i.onmousemove=function(e){if(e.ctrlKey)document.querySelector("#bigImg").src=this.src;};\
4615+
i.onmouseover=i.onmousemove=function(e){document.querySelector("#bigImg").src=e.ctrlKey?this.src:"";};\
46154616
i.onmouseout=function(e){document.querySelector("#bigImg").src="";}\
46164617
});\
46174618
[].forEach.call(document.querySelectorAll("body>div"),function(i){\

0 commit comments

Comments
 (0)