small improvement to the ad-maven 3rd party bypass

This commit is contained in:
Amm0ni4 2024-02-24 12:37:56 +01:00
parent 6001985ad1
commit 54166185c5
2 changed files with 21 additions and 2 deletions

View file

@ -1744,7 +1744,7 @@
if (/(free-content.pro|((ebaticalfel|downbadleaks|megadropsz|megadumpz|stownrusis|iedprivatedqu).com))\/s\?/.test(url)) {
GM_setValue('savedShortlink', url);
window.location.assign('https://adbypass.eu/');
} else if (/adbypass.eu/.test(url)) {
} else if (/adbypass.eu/.test(url) && !url.includes('/unblock')) {
window.addEventListener("load", function(event) {
var savedShortlink = GM_getValue('savedShortlink', null);
var inputField = document.querySelector('#inputt');
@ -1753,6 +1753,15 @@
GM_deleteValue('savedShortlink');
}
});
} else if (/adbypass.eu\/unblock/.test(url)) {
window.addEventListener('load', function() {
var linkElement = document.querySelector('.form__group > a:nth-child(5)');
if (linkElement && linkElement.href) {
if (confirm('Do you want to redirect to ' + linkElement.href + '?')) {
window.location.assign(linkElement.href);
}
}
});
}
})();
// ----- ----- -----

View file

@ -5,6 +5,7 @@
// @include /adbypass.eu/
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_deleteValue
// @run-at document-start
// ==/UserScript==
@ -15,7 +16,7 @@
if (/(free-content.pro|((ebaticalfel|downbadleaks|megadropsz|megadumpz|stownrusis|iedprivatedqu).com))\/s\?/.test(url)) {
GM_setValue('savedShortlink', url);
window.location.assign('https://adbypass.eu/');
} else if (/adbypass.eu/.test(url)) {
} else if (/adbypass.eu/.test(url) && !url.includes('/unblock')) {
window.addEventListener("load", function(event) {
var savedShortlink = GM_getValue('savedShortlink', null);
var inputField = document.querySelector('#inputt');
@ -24,6 +25,15 @@
GM_deleteValue('savedShortlink');
}
});
} else if (/adbypass.eu\/unblock/.test(url)) {
window.addEventListener('load', function() {
var linkElement = document.querySelector('.form__group > a:nth-child(5)');
if (linkElement && linkElement.href) {
if (confirm('Do you want to redirect to ' + linkElement.href + '?')) {
window.location.assign(linkElement.href);
}
}
});
}
})();
// ----- ----- -----