add autoclicks for adsafelink / link2unlock

This commit is contained in:
Amm0ni4 2025-01-17 00:48:15 +01:00
parent 1e8d3793f5
commit 2793ad5266
4 changed files with 24 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 93.4.16 // @version 93.4.17
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
// @grant GM_addStyle // @grant GM_addStyle
@ -716,6 +716,7 @@
// @include /paster.gg/ // @include /paster.gg/
// @include /go.zovo.ink/ // @include /go.zovo.ink/
// @include /^https:\/\/kisalt\.com\/.*/ // @include /^https:\/\/kisalt\.com\/.*/
// @include /app.link2unlock.com/
// @include /filecrypt.(cc|co)/ // @include /filecrypt.(cc|co)/
// @include /(mega-enlace|acortados).com/ // @include /(mega-enlace|acortados).com/
// @include /^https:\/\/.*\.((tradeshowrating|historyofyesterday|insurelean).com|playonpc.online|quins.us)\/.*/ // @include /^https:\/\/.*\.((tradeshowrating|historyofyesterday|insurelean).com|playonpc.online|quins.us)\/.*/

View file

@ -4,7 +4,7 @@
// @run-at document-start // @run-at document-start
// @author Amm0ni4 // @author Amm0ni4
// @noframes // @noframes
// @version 93.4.16 // @version 93.4.17
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
// @grant GM_addStyle // @grant GM_addStyle
@ -716,6 +716,7 @@
// @include /paster.gg/ // @include /paster.gg/
// @include /go.zovo.ink/ // @include /go.zovo.ink/
// @include /^https:\/\/kisalt\.com\/.*/ // @include /^https:\/\/kisalt\.com\/.*/
// @include /app.link2unlock.com/
// @include /filecrypt.(cc|co)/ // @include /filecrypt.(cc|co)/
// @include /(mega-enlace|acortados).com/ // @include /(mega-enlace|acortados).com/
// @include /^https:\/\/.*\.((tradeshowrating|historyofyesterday|insurelean).com|playonpc.online|quins.us)\/.*/ // @include /^https:\/\/.*\.((tradeshowrating|historyofyesterday|insurelean).com|playonpc.online|quins.us)\/.*/
@ -2645,6 +2646,15 @@
//const redirectIfCloudflareCaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (checkCloudflareCaptchaSolved()) { clearInterval(intervalId); redirect(button.href); } }, 1000); }; //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; /link.paid4link.com/.test(url) ? afterDOMLoaded(function() { redirectIfExists('#get-link-button');}) : null;
// adsafelink / link2unlock - https://github.com/realodix/AdBlockID/issues/1874
const clickIfCloudflareCaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (checkCloudflareCaptchaSolved()) { clearInterval(intervalId); button.click(); } }, 1000); };
/app.link2unlock.com/.test(url) ? afterDOMLoaded(function() {
clickIfExists('#btn-1');
clickIfExists('#btn-2');
clickIfCloudflareCaptchaSolved('#btn-3');
clickIfExists('#submit-button');
}) : null;
})(); })();
(function() { (function() {

View file

@ -210,6 +210,7 @@
// @include /^https:\/\/kisalt\.com\/.*/ // @include /^https:\/\/kisalt\.com\/.*/
// @match *://*.ukrupdate.com/* // @match *://*.ukrupdate.com/*
// @match *://*.aryx.xyz/* // @match *://*.aryx.xyz/*
// @include /app.link2unlock.com/
// @run-at document-start // @run-at document-start
// ==/UserScript== // ==/UserScript==
@ -1203,6 +1204,15 @@
//const redirectIfCloudflareCaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (checkCloudflareCaptchaSolved()) { clearInterval(intervalId); redirect(button.href); } }, 1000); }; //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; /link.paid4link.com/.test(url) ? afterDOMLoaded(function() { redirectIfExists('#get-link-button');}) : null;
// adsafelink / link2unlock - https://github.com/realodix/AdBlockID/issues/1874
const clickIfCloudflareCaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (checkCloudflareCaptchaSolved()) { clearInterval(intervalId); button.click(); } }, 1000); };
/app.link2unlock.com/.test(url) ? afterDOMLoaded(function() {
clickIfExists('#btn-1');
clickIfExists('#btn-2');
clickIfCloudflareCaptchaSolved('#btn-3');
clickIfExists('#submit-button');
}) : null;
})(); })();
(function() { (function() {

View file

@ -697,6 +697,7 @@ https://paster.so/*
/paster.gg/ /paster.gg/
/go.zovo.ink/ /go.zovo.ink/
/^https:\/\/kisalt\.com\/.*/ /^https:\/\/kisalt\.com\/.*/
/app.link2unlock.com/
/filecrypt.(cc|co)/ /filecrypt.(cc|co)/
/(mega-enlace|acortados).com/ /(mega-enlace|acortados).com/
/^https:\/\/.*\.((tradeshowrating|historyofyesterday|insurelean).com|playonpc.online|quins.us)\/.*/ /^https:\/\/.*\.((tradeshowrating|historyofyesterday|insurelean).com|playonpc.online|quins.us)\/.*/