Skip to content

Commit cb45967

Browse files
committed
removed Violentmonkey prefix code (not sure why these GM_* APIs are working now)
1 parent 6b6647a commit cb45967

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

e-hentai-downloader.user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name E-Hentai Downloader
3-
// @version 1.17.3
3+
// @version 1.17.4
44
// @description Download E-Hentai archive as zip file
55
// @author 864907600cc
66
// @icon https://secure.gravatar.com/avatar/147834caf9ccb0a66b2505c753747867
@@ -41,6 +41,8 @@ else if (navigator.userAgent.indexOf('Trident') >= 0) {
4141
}
4242

4343
// Simple fixed not working on Violentmonkey
44+
// Not sure why these GM_* APIs are working now... OTL
45+
/*
4446
else if ((navigator.userAgent.indexOf('OPR') >= 0 || navigator.userAgent.indexOf('Maxthon') >= 0) && !GM_info) {
4547
var GM_getValue = GM_getValue || function(i) {
4648
return localStorage.getItem(i);
@@ -51,7 +53,7 @@ else if ((navigator.userAgent.indexOf('OPR') >= 0 || navigator.userAgent.indexOf
5153
var GM_info = GM_info || {script: {}, scriptHandler: 'Violentmonkey'};
5254
//var unsafeWindow = window;
5355
}
54-
56+
*/
5557
// GreaseMonkey 3.2 beta 1 and older version can't load content of GM_xhr.response, and this can't be fix.
5658
else if (
5759
(!GM_info.scriptHandler || GM_info.scriptHandler.indexOf('GreaseMonkey') >= 0) && GM_info.version != null && (

0 commit comments

Comments
 (0)