diff --git a/dist/autoloader.js b/dist/autoloader.js index 8f0416c..88997c2 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Fri Feb 15 2019 17:36:30 GMT+0100 (CET)*/ +/*Generated on:Fri Feb 15 2019 17:39:59 GMT+0100 (CET)*/ var AutomaticDispose_Branch = "master"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var da_lss_adis_time = new Date().getTime(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index 7a02314..3db85f6 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Fri Feb 15 2019 17:36:30 GMT+0100 (CET)*/ +/*Generated on:Fri Feb 15 2019 17:39:59 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -20513,9 +20513,10 @@ var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1); console.log('DEBUG::', MissionID, $div, isShow); if ($div.length && isShow) { + console.log('DEBUG::', MissionID, 'Start Observer'); var observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { - //console.log(mutation) + console.log('DEBUG::','mutation', mutation) if (mutation.attributeName === "style") { if ($(mutation.target).css('display') == 'none') { if (typeof ppppp != 'undefined') { @@ -20542,7 +20543,7 @@ characterDataOldValue: true }); }) - $div.click(); + $($div[0]).click(); } else { window.console.log('DEBUG:::', 'Start AutomaticDispose()') window.AutomaticDisposeCall = new AutomaticDispose(); diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 53391fa..135a579 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -2480,9 +2480,10 @@ var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1); console.log('DEBUG::', MissionID, $div, isShow); if ($div.length && isShow) { + console.log('DEBUG::', MissionID, 'Start Observer'); var observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { - //console.log(mutation) + console.log('DEBUG::','mutation', mutation) if (mutation.attributeName === "style") { if ($(mutation.target).css('display') == 'none') { if (typeof ppppp != 'undefined') { @@ -2509,7 +2510,7 @@ characterDataOldValue: true }); }) - $div.click(); + $($div[0]).click(); } else { window.console.log('DEBUG:::', 'Start AutomaticDispose()') window.AutomaticDisposeCall = new AutomaticDispose();