add autoclick for hdpastes

https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/170
This commit is contained in:
Amm0ni4 2024-10-12 12:46:54 +02:00
parent 871f81d5c5
commit a87b41bb08
4 changed files with 14 additions and 2 deletions

View file

@ -4,7 +4,7 @@
// @run-at document-start // @run-at document-start
// @author Amm0ni4 // @author Amm0ni4
// @noframes // @noframes
// @version 92.8.20 // @version 92.8.21
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
// @grant GM_addStyle // @grant GM_addStyle
@ -731,6 +731,7 @@
// @include /mastramstories.com\/api.php\?api/ // @include /mastramstories.com\/api.php\?api/
// @include /onlinetntextbooks.com/ // @include /onlinetntextbooks.com/
// @include /www.saferoms.com\/\?go=/ // @include /www.saferoms.com\/\?go=/
// @include /hdpastes.com\/\?v=/
// @include /filecrypt.(cc|co)/ // @include /filecrypt.(cc|co)/
// @include /^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/ // @include /^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/
// @include /(mega-enlace|acortados).com/ // @include /(mega-enlace|acortados).com/

View file

@ -4,7 +4,7 @@
// @run-at document-start // @run-at document-start
// @author Amm0ni4 // @author Amm0ni4
// @noframes // @noframes
// @version 92.8.20 // @version 92.8.21
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
// @grant GM_addStyle // @grant GM_addStyle
@ -731,6 +731,7 @@
// @include /mastramstories.com\/api.php\?api/ // @include /mastramstories.com\/api.php\?api/
// @include /onlinetntextbooks.com/ // @include /onlinetntextbooks.com/
// @include /www.saferoms.com\/\?go=/ // @include /www.saferoms.com\/\?go=/
// @include /hdpastes.com\/\?v=/
// @include /filecrypt.(cc|co)/ // @include /filecrypt.(cc|co)/
// @include /^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/ // @include /^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/
// @include /(mega-enlace|acortados).com/ // @include /(mega-enlace|acortados).com/
@ -2382,6 +2383,10 @@
if (confirm(`Confirm to redirect to \n${dlLink.split('https://href.li/?')[1]}\n`)) {redirect(dlLink);} if (confirm(`Confirm to redirect to \n${dlLink.split('https://href.li/?')[1]}\n`)) {redirect(dlLink);}
}) : null; }) : null;
// https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/170
const clickIfRecaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (window.grecaptcha.getResponse().length !== 0) { clearInterval(intervalId); button.click(); } }, 1000); };
/hdpastes.com\/\?v=/.test(url) ? afterDOMLoaded(function() {clickIfRecaptchaSolved('.btn-success');}) : null;
})(); })();
(function() { (function() {

View file

@ -181,6 +181,7 @@
// @include /mastramstories.com\/api.php\?api/ // @include /mastramstories.com\/api.php\?api/
// @include /onlinetntextbooks.com/ // @include /onlinetntextbooks.com/
// @include /www.saferoms.com\/\?go=/ // @include /www.saferoms.com\/\?go=/
// @include /hdpastes.com\/\?v=/
// @run-at document-start // @run-at document-start
// ==/UserScript== // ==/UserScript==
@ -890,6 +891,10 @@
if (confirm(`Confirm to redirect to \n${dlLink.split('https://href.li/?')[1]}\n`)) {redirect(dlLink);} if (confirm(`Confirm to redirect to \n${dlLink.split('https://href.li/?')[1]}\n`)) {redirect(dlLink);}
}) : null; }) : null;
// https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/170
const clickIfRecaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (window.grecaptcha.getResponse().length !== 0) { clearInterval(intervalId); button.click(); } }, 1000); };
/hdpastes.com\/\?v=/.test(url) ? afterDOMLoaded(function() {clickIfRecaptchaSolved('.btn-success');}) : null;
})(); })();
(function() { (function() {

View file

@ -711,6 +711,7 @@ https://paster.so/*
/mastramstories.com\/api.php\?api/ /mastramstories.com\/api.php\?api/
/onlinetntextbooks.com/ /onlinetntextbooks.com/
/www.saferoms.com\/\?go=/ /www.saferoms.com\/\?go=/
/hdpastes.com\/\?v=/
/filecrypt.(cc|co)/ /filecrypt.(cc|co)/
/^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/ /^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/
/(mega-enlace|acortados).com/ /(mega-enlace|acortados).com/