|
6 | 6 | // @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures automatically |
7 | 7 | // @description:zh-CN 在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存 |
8 | 8 | // @description:zh-TW 線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存 |
9 | | -// @version 2022.1.7.1 |
| 9 | +// @version 2022.1.9.1 |
10 | 10 | // @created 2011-6-15 |
11 | 11 | // @namespace https://github.com/hoothin/UserScripts |
12 | 12 | // @homepage http://hoothin.com |
@@ -714,17 +714,29 @@ Ascii2D | https://ascii2d.net/search/url/#t# |
714 | 714 | Trace Moe | https://trace.moe/?url=#t#`; |
715 | 715 |
|
716 | 716 | var _GM_openInTab,_GM_setClipboard,_GM_xmlhttpRequest,_GM_registerMenuCommand,_GM_notification; |
717 | | - if(typeof GM_getValue!='undefined'){ |
| 717 | + if(typeof GM_openInTab!='undefined'){ |
718 | 718 | _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'){ |
724 | 720 | _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'){ |
725 | 725 | _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'){ |
726 | 730 | _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'){ |
727 | 735 | _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'){ |
728 | 740 | _GM_notification=GM.notification; |
729 | 741 | } |
730 | 742 | if(typeof _GM_openInTab=='undefined')_GM_openInTab=(s)=>{}; |
|
0 commit comments