From d70e970fc2291382b9181c0dd658d0679d68b3d2 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Wed, 21 Feb 2024 22:07:31 +0100 Subject: [PATCH] add last change to main file --- Bypass_All_Shortlinks.user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index f68aaec..4f5920f 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -1948,8 +1948,9 @@ /www.mirrored.to\/files\/(?!.*\?hash=)/.test(url) ? afterDOMLoaded(function() {redirectIfExists('body > div.container.dl-width > div:nth-child(4) > div > a')}) : null; // skyve.io file host, seen on dodi-repacks.site + const clickIfExistsWithConfirmation = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (button) { clearInterval(intervalId); if (confirm('Press OK to download.')) { button.click(); } } }, 500);}; /skyve.io/.test(url) ? afterDOMLoaded(function() {clickIfExists('#method_free')}) : null; - /skyve.io/.test(url) ? afterDOMLoaded(function() {clickIfExists('.bicon')}) : null; //download button + /skyve.io/.test(url) ? afterDOMLoaded(function() {clickIfExistsWithConfirmation('.bicon')}) : null; //download button })(); @@ -1960,6 +1961,7 @@ Object.defineProperty(window, 'setTimeout', {value: function(func, delay) {if (delay === 1000) {delay = 50;} return FsT.apply(this, arguments);}}); Object.defineProperty(window, 'setInterval', {value: function(func, delay) {if (delay === 1000) {delay = 50;} return FsI.apply(this, arguments);}}); }; + // www.gtaall.com - https://github.com/FastForwardTeam/FastForward/issues/1348 /www.gtaall.com\/get-manual/.test(url) ? boostTimers() : null;