mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-29 16:33:02 +05:00
42 lines
1.9 KiB
JavaScript
42 lines
1.9 KiB
JavaScript
// ==UserScript==
|
|
// @name Ad-maven 3rd party bypass
|
|
// @description These bypasses are always merged into Bypass_All_Shortlinks.user.js
|
|
// @include /^(https?:\/\/)((ebaticalfel|megadropsz|stownrusis|iedprivatedqu).com)\/s\?/
|
|
// @include /adbypass.eu/
|
|
// @grant GM_setValue
|
|
// @grant GM_getValue
|
|
// @grant GM_deleteValue
|
|
// @run-at document-start
|
|
// ==/UserScript==
|
|
|
|
// ----- Bypass ad-maven with adbypass.eu -----
|
|
(function() {
|
|
'use strict';
|
|
if (true) {
|
|
var url = window.location.href;
|
|
if (/((ebaticalfel|megadropsz|stownrusis|iedprivatedqu).com)\/s\?/.test(url)) {
|
|
GM_setValue('savedShortlink', url);
|
|
window.location.assign('https://adbypass.eu/');
|
|
} 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');
|
|
if (savedShortlink && inputField) {
|
|
inputField.value = savedShortlink;
|
|
GM_deleteValue('savedShortlink');
|
|
setTimeout(function() {let bypassButton = document.querySelector('#bttn');if (bypassButton) {bypassButton.click(); bypassButton.disabled = true;}}, 1000);
|
|
}
|
|
});
|
|
} 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('Bypass done.\nRedirect to ' + linkElement.href + ' ?')) {
|
|
window.location.assign(linkElement.href);
|
|
//}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
})();
|
|
// ----- ----- -----
|