Skip to content

Commit b010e50

Browse files
committed
fix for svg
1 parent ac05a75 commit b010e50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 2 additions & 2 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.4.8.5
9+
// @version 2017.4.9.1
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -7998,7 +7998,7 @@ background-image:url("'+ prefs.icons.magnifier +'");\
79987998
// }
79997999
// }
80008000
// }
8001-
if (target.nodeName != 'IMG' && target.className.indexOf("pv-float-bar")==-1){
8001+
if (target.nodeName != 'IMG' && typeof target.className === 'string' && target.className.indexOf("pv-float-bar")==-1){
80028002
var targetStyle=getComputedStyle(target);
80038003
if(targetStyle.backgroundImage && /^url/.test(targetStyle.backgroundImage) && targetStyle.width.replace("px","")>prefs.floatBar.minSizeLimit.w && targetStyle.height.replace("px","")>prefs.floatBar.minSizeLimit.h){
80048004
var src=targetStyle.backgroundImage.replace(/url\(["'](.*)["']\)/,"$1");

0 commit comments

Comments
 (0)