mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2025-01-31 06:57:29 +05:00
add download confirmation to skyve.io
This commit is contained in:
parent
62455ac559
commit
0856529dfa
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name simple redirects
|
// @name extra bypasses
|
||||||
// @include /mundopolo.net/
|
// @include /mundopolo.net/
|
||||||
// @include /comohoy.com/
|
// @include /comohoy.com/
|
||||||
// @include /sphinxanime.com\/short/
|
// @include /sphinxanime.com\/short/
|
||||||
|
@ -284,8 +284,9 @@
|
||||||
/www.mirrored.to\/files\/(?!.*\?hash=)/.test(url) ? afterDOMLoaded(function() {redirectIfExists('body > div.container.dl-width > div:nth-child(4) > div > a')}) : null;
|
/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
|
// 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('#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
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
@ -296,6 +297,7 @@
|
||||||
Object.defineProperty(window, 'setTimeout', {value: function(func, delay) {if (delay === 1000) {delay = 50;} return FsT.apply(this, arguments);}});
|
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);}});
|
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 - https://github.com/FastForwardTeam/FastForward/issues/1348
|
||||||
/www.gtaall.com\/get-manual/.test(url) ? boostTimers() : null;
|
/www.gtaall.com\/get-manual/.test(url) ? boostTimers() : null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue