mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2025-01-01 17:33:00 +05:00
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
// ==UserScript==
|
|
// @name Ad-maven 3rd party bypass
|
|
// @description These bypasses are always merged into Bypass_All_Shortlinks.user.js
|
|
// @include /(free-content.pro|((ebaticalfel|downbadleaks|megadropsz|megadumpz|stownrusis|iedprivatedqu).com))\/s\?/
|
|
// @include /adbypass.eu/
|
|
// @grant GM_setValue
|
|
// @grant GM_getValue
|
|
// @run-at document-start
|
|
// ==/UserScript==
|
|
|
|
// ----- Bypass ad-maven link shorteners -----
|
|
(function() {
|
|
'use strict';
|
|
var url = window.location.href;
|
|
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)) {
|
|
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');
|
|
}
|
|
});
|
|
}
|
|
})();
|
|
// ----- ----- -----
|