mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-30 00:43:02 +05:00
29 lines
811 B
JavaScript
29 lines
811 B
JavaScript
// ==UserScript==
|
|
// @name Linkvertise Bypass
|
|
// @include /^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/
|
|
// @run-at document-start
|
|
// ==/UserScript==
|
|
|
|
// ----- Bypass Linkvertise ------
|
|
(function() {
|
|
'use strict';
|
|
|
|
if (/^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/.test(window.location.href)) {
|
|
|
|
//easy case
|
|
let rParam = new URLSearchParams(window.location.search).get('r');
|
|
if (rParam) {
|
|
window.location.assign(atob(rParam));
|
|
|
|
// hard case
|
|
} else {
|
|
|
|
// Bypass using Bypass.city API
|
|
window.location.assign('https://adbypass.org/bypass?bypass=' + window.location.href);
|
|
|
|
}
|
|
}
|
|
|
|
})();
|
|
// ----- ------ ----------
|
|
|