mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-28 07:53:01 +05:00
improve bypass for modlist.in sites
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/195
This commit is contained in:
parent
19156cead9
commit
2cdbf040dc
3 changed files with 58 additions and 8 deletions
|
@ -4,7 +4,7 @@
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @author Amm0ni4
|
// @author Amm0ni4
|
||||||
// @noframes
|
// @noframes
|
||||||
// @version 93.1.6
|
// @version 93.1.7
|
||||||
// @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.1.6
|
// @version 93.1.7
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
// @grant GM_addStyle
|
// @grant GM_addStyle
|
||||||
|
@ -2059,11 +2059,36 @@
|
||||||
// starsddl.me
|
// starsddl.me
|
||||||
/starsddl.me\/short\/\?anonym=/.test(url) ? redirect(atob(url.split('?anonym=')[1])) : null;
|
/starsddl.me\/short\/\?anonym=/.test(url) ? redirect(atob(url.split('?anonym=')[1])) : null;
|
||||||
|
|
||||||
// uhdmovies.dad
|
// uhdmovies.icu, topmovies.icu (modlist.in)
|
||||||
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('span.block > a:nth-child(1)')}) : null;
|
|
||||||
|
// button-clicking method
|
||||||
|
/* /tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('span.block > a:nth-child(1)')}) : null;
|
||||||
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('#verify_button')}) : null;
|
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('#verify_button')}) : null;
|
||||||
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('#verify_button2')}) : null;
|
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('#verify_button2')}) : null;
|
||||||
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {redirectIfExists('#two_steps_btn')}) : null;
|
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {redirectIfExists('#two_steps_btn')}) : null; */
|
||||||
|
|
||||||
|
//alt method (thanks to https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-11063787)
|
||||||
|
if (/tech.unblockedgames.world/.test(url)) {
|
||||||
|
afterDOMLoaded(function() {
|
||||||
|
// First step
|
||||||
|
const landingElement = document.querySelector("#landing");
|
||||||
|
if (landingElement) {
|
||||||
|
landingElement.submit();
|
||||||
|
// Second step
|
||||||
|
} else {
|
||||||
|
// Extract the target URL from the script contents and redirect to it
|
||||||
|
const scriptElements = Array.from(document.getElementsByTagName("script"));
|
||||||
|
const matchedUrl = scriptElements
|
||||||
|
.map((script) => script.textContent.match(/https:\/\/tech\.unblockedgames\.world\/\?go=pepe-[\w-]+/))
|
||||||
|
.filter((match) => match) // Filter out null values
|
||||||
|
.map((match) => match[0])[0]; // Get the first matching URL
|
||||||
|
|
||||||
|
if (matchedUrl) {
|
||||||
|
window.location.href = matchedUrl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// seriezloaded.com.ng
|
// seriezloaded.com.ng
|
||||||
/seriezloaded.com.ng\/sl-download\/\?link=/ .test(url) ? afterDOMLoaded(function() { redirect(document.querySelector('.sl-button').getAttribute('onclick').match(/'(https:\/\/[^']+)'/)[1]) }) : null;
|
/seriezloaded.com.ng\/sl-download\/\?link=/ .test(url) ? afterDOMLoaded(function() { redirect(document.querySelector('.sl-button').getAttribute('onclick').match(/'(https:\/\/[^']+)'/)[1]) }) : null;
|
||||||
|
|
|
@ -525,11 +525,36 @@
|
||||||
// starsddl.me
|
// starsddl.me
|
||||||
/starsddl.me\/short\/\?anonym=/.test(url) ? redirect(atob(url.split('?anonym=')[1])) : null;
|
/starsddl.me\/short\/\?anonym=/.test(url) ? redirect(atob(url.split('?anonym=')[1])) : null;
|
||||||
|
|
||||||
// uhdmovies.dad
|
// uhdmovies.icu, topmovies.icu (modlist.in)
|
||||||
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('span.block > a:nth-child(1)')}) : null;
|
|
||||||
|
// button-clicking method
|
||||||
|
/* /tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('span.block > a:nth-child(1)')}) : null;
|
||||||
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('#verify_button')}) : null;
|
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('#verify_button')}) : null;
|
||||||
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('#verify_button2')}) : null;
|
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {clickIfExists('#verify_button2')}) : null;
|
||||||
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {redirectIfExists('#two_steps_btn')}) : null;
|
/tech.unblockedgames.world/.test(url) ? afterDOMLoaded(function() {redirectIfExists('#two_steps_btn')}) : null; */
|
||||||
|
|
||||||
|
//alt method (thanks to https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-11063787)
|
||||||
|
if (/tech.unblockedgames.world/.test(url)) {
|
||||||
|
afterDOMLoaded(function() {
|
||||||
|
// First step
|
||||||
|
const landingElement = document.querySelector("#landing");
|
||||||
|
if (landingElement) {
|
||||||
|
landingElement.submit();
|
||||||
|
// Second step
|
||||||
|
} else {
|
||||||
|
// Extract the target URL from the script contents and redirect to it
|
||||||
|
const scriptElements = Array.from(document.getElementsByTagName("script"));
|
||||||
|
const matchedUrl = scriptElements
|
||||||
|
.map((script) => script.textContent.match(/https:\/\/tech\.unblockedgames\.world\/\?go=pepe-[\w-]+/))
|
||||||
|
.filter((match) => match) // Filter out null values
|
||||||
|
.map((match) => match[0])[0]; // Get the first matching URL
|
||||||
|
|
||||||
|
if (matchedUrl) {
|
||||||
|
window.location.href = matchedUrl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// seriezloaded.com.ng
|
// seriezloaded.com.ng
|
||||||
/seriezloaded.com.ng\/sl-download\/\?link=/ .test(url) ? afterDOMLoaded(function() { redirect(document.querySelector('.sl-button').getAttribute('onclick').match(/'(https:\/\/[^']+)'/)[1]) }) : null;
|
/seriezloaded.com.ng\/sl-download\/\?link=/ .test(url) ? afterDOMLoaded(function() { redirect(document.querySelector('.sl-button').getAttribute('onclick').match(/'(https:\/\/[^']+)'/)[1]) }) : null;
|
||||||
|
|
Loading…
Reference in a new issue