skip the cloudflare captcha on paid4link last step

https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/222
This commit is contained in:
Amm0ni4 2025-01-17 00:04:39 +01:00
parent 459a1241af
commit 1e8d3793f5
3 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 93.4.15
// @version 93.4.16
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 93.4.15
// @version 93.4.16
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
@ -2642,8 +2642,8 @@
}
// paid4link last step - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/222
const redirectIfCloudflareCaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (checkCloudflareCaptchaSolved()) { clearInterval(intervalId); redirect(button.href); } }, 1000); };
/link.paid4link.com/.test(url) ? afterDOMLoaded(function() { redirectIfCloudflareCaptchaSolved('#get-link-button');}) : null;
//const redirectIfCloudflareCaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (checkCloudflareCaptchaSolved()) { clearInterval(intervalId); redirect(button.href); } }, 1000); };
/link.paid4link.com/.test(url) ? afterDOMLoaded(function() { redirectIfExists('#get-link-button');}) : null;
})();

View file

@ -1200,8 +1200,8 @@
}
// paid4link last step - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/222
const redirectIfCloudflareCaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (checkCloudflareCaptchaSolved()) { clearInterval(intervalId); redirect(button.href); } }, 1000); };
/link.paid4link.com/.test(url) ? afterDOMLoaded(function() { redirectIfCloudflareCaptchaSolved('#get-link-button');}) : null;
//const redirectIfCloudflareCaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (checkCloudflareCaptchaSolved()) { clearInterval(intervalId); redirect(button.href); } }, 1000); };
/link.paid4link.com/.test(url) ? afterDOMLoaded(function() { redirectIfExists('#get-link-button');}) : null;
})();