mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-29 16:33:02 +05:00
small improvement to the ad-maven 3rd party bypass
This commit is contained in:
parent
6001985ad1
commit
54166185c5
2 changed files with 21 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
})();
|
||||
// ----- ----- -----
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
})();
|
||||
// ----- ----- -----
|
||||
|
|
Loading…
Reference in a new issue