Skip to content

Commit

Permalink
removed Violentmonkey prefix code (not sure why these GM_* APIs are w…
Browse files Browse the repository at this point in the history
…orking now)
  • Loading branch information
ccloli committed Aug 30, 2015
1 parent 6b6647a commit cb45967
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions e-hentai-downloader.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name E-Hentai Downloader
// @version 1.17.3
// @version 1.17.4
// @description Download E-Hentai archive as zip file
// @author 864907600cc
// @icon https://secure.gravatar.com/avatar/147834caf9ccb0a66b2505c753747867
Expand Down Expand Up @@ -41,6 +41,8 @@ else if (navigator.userAgent.indexOf('Trident') >= 0) {
}

// Simple fixed not working on Violentmonkey
// Not sure why these GM_* APIs are working now... OTL
/*
else if ((navigator.userAgent.indexOf('OPR') >= 0 || navigator.userAgent.indexOf('Maxthon') >= 0) && !GM_info) {
var GM_getValue = GM_getValue || function(i) {
return localStorage.getItem(i);
Expand All @@ -51,7 +53,7 @@ else if ((navigator.userAgent.indexOf('OPR') >= 0 || navigator.userAgent.indexOf
var GM_info = GM_info || {script: {}, scriptHandler: 'Violentmonkey'};
//var unsafeWindow = window;
}

*/
// GreaseMonkey 3.2 beta 1 and older version can't load content of GM_xhr.response, and this can't be fix.
else if (
(!GM_info.scriptHandler || GM_info.scriptHandler.indexOf('GreaseMonkey') >= 0) && GM_info.version != null && (
Expand Down

0 comments on commit cb45967

Please sign in to comment.