mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2025-03-02 21:39:38 +05:00
add automation for paid4link 3rd step
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/240
This commit is contained in:
parent
5b7e042d95
commit
c4eb3c3827
4 changed files with 47 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @author Amm0ni4
|
// @author Amm0ni4
|
||||||
// @noframes
|
// @noframes
|
||||||
// @version 93.7.17
|
// @version 93.7.18
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
// @grant GM_addStyle
|
// @grant GM_addStyle
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @author Amm0ni4
|
// @author Amm0ni4
|
||||||
// @noframes
|
// @noframes
|
||||||
// @version 93.7.17
|
// @version 93.7.18
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
// @grant GM_addStyle
|
// @grant GM_addStyle
|
||||||
|
@ -2871,7 +2871,28 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// paid4link last step - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/222
|
// go.paid4link.com 3rd step
|
||||||
|
function getURLwithSafelinkFromThePageScripts() {
|
||||||
|
const scripts = document.getElementsByTagName('script');
|
||||||
|
for (let script of scripts) {
|
||||||
|
const content = script.innerHTML;
|
||||||
|
// we try to match any URL that contains "safelink" and is from the same domain
|
||||||
|
const matches = content.match(/(https?:\/\/[^'"]+safelink[^'"]+)/g);
|
||||||
|
if (matches) {
|
||||||
|
for (let match of matches) {
|
||||||
|
if (match.includes(window.location.hostname)) {
|
||||||
|
return match;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/(aduzz|tutorialsaya|indobo|baristakesehatan|merekrut).com|deltabtc.xyz|bit4me.info/.test(url) ? afterDOMLoaded(function() {
|
||||||
|
const url = getURLwithSafelinkFromThePageScripts();
|
||||||
|
if (url) redirect(url);
|
||||||
|
}) : null;
|
||||||
|
|
||||||
|
// go.paid4link.com 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); };
|
//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;
|
||||||
|
|
||||||
|
|
|
@ -1282,7 +1282,28 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// paid4link last step - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/222
|
// go.paid4link.com 3rd step
|
||||||
|
function getURLwithSafelinkFromThePageScripts() {
|
||||||
|
const scripts = document.getElementsByTagName('script');
|
||||||
|
for (let script of scripts) {
|
||||||
|
const content = script.innerHTML;
|
||||||
|
// we try to match any URL that contains "safelink" and is from the same domain
|
||||||
|
const matches = content.match(/(https?:\/\/[^'"]+safelink[^'"]+)/g);
|
||||||
|
if (matches) {
|
||||||
|
for (let match of matches) {
|
||||||
|
if (match.includes(window.location.hostname)) {
|
||||||
|
return match;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/(aduzz|tutorialsaya|indobo|baristakesehatan|merekrut).com|deltabtc.xyz|bit4me.info/.test(url) ? afterDOMLoaded(function() {
|
||||||
|
const url = getURLwithSafelinkFromThePageScripts();
|
||||||
|
if (url) redirect(url);
|
||||||
|
}) : null;
|
||||||
|
|
||||||
|
// go.paid4link.com 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); };
|
//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;
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
// @namespace Violentmonkey Scripts
|
// @namespace Violentmonkey Scripts
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @author Bloggerpemula
|
// @author Bloggerpemula
|
||||||
// @version 93.7.17
|
// @version 93.7.18
|
||||||
// @match *://*/*
|
// @match *://*/*
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
|
|
Loading…
Reference in a new issue