Skip to content

Commit e38e4a0

Browse files
committed
Update Picviewer CE+.user.js
1 parent 2d4cb2e commit e38e4a0

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 19 additions & 7 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 automatically
77
// @description:zh-CN 在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存
88
// @description:zh-TW 線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存
9-
// @version 2022.1.7.1
9+
// @version 2022.1.9.1
1010
// @created 2011-6-15
1111
// @namespace https://github.com/hoothin/UserScripts
1212
// @homepage http://hoothin.com
@@ -714,17 +714,29 @@ Ascii2D | https://ascii2d.net/search/url/#t#
714714
Trace Moe | https://trace.moe/?url=#t#`;
715715

716716
var _GM_openInTab,_GM_setClipboard,_GM_xmlhttpRequest,_GM_registerMenuCommand,_GM_notification;
717-
if(typeof GM_getValue!='undefined'){
717+
if(typeof GM_openInTab!='undefined'){
718718
_GM_openInTab=GM_openInTab;
719-
_GM_setClipboard=GM_setClipboard;
720-
_GM_xmlhttpRequest=GM_xmlhttpRequest;
721-
_GM_registerMenuCommand=GM_registerMenuCommand;
722-
_GM_notification=GM_notification;
723-
}else if(typeof GM!='undefined' && typeof GM.getValue!='undefined'){
719+
}else if(typeof GM!='undefined' && typeof GM.openInTab!='undefined'){
724720
_GM_openInTab=GM.openInTab;
721+
}
722+
if(typeof GM_setClipboard!='undefined'){
723+
_GM_setClipboard=GM_setClipboard;
724+
}else if(typeof GM!='undefined' && typeof GM.setClipboard!='undefined'){
725725
_GM_setClipboard=GM.setClipboard;
726+
}
727+
if(typeof GM_xmlhttpRequest!='undefined'){
728+
_GM_xmlhttpRequest=GM_xmlhttpRequest;
729+
}else if(typeof GM!='undefined' && typeof GM.xmlhttpRequest!='undefined'){
726730
_GM_xmlhttpRequest=GM.xmlhttpRequest;
731+
}
732+
if(typeof GM_registerMenuCommand!='undefined'){
733+
_GM_registerMenuCommand=GM_registerMenuCommand;
734+
}else if(typeof GM!='undefined' && typeof GM.registerMenuCommand!='undefined'){
727735
_GM_registerMenuCommand=GM.registerMenuCommand;
736+
}
737+
if(typeof GM_notification!='undefined'){
738+
_GM_notification=GM_notification;
739+
}else if(typeof GM!='undefined' && typeof GM.notification!='undefined'){
728740
_GM_notification=GM.notification;
729741
}
730742
if(typeof _GM_openInTab=='undefined')_GM_openInTab=(s)=>{};

0 commit comments

Comments
 (0)