From 2cb0b79d3d891c45da3bdc37172d5ded9f001138 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Sat, 20 Apr 2024 22:06:32 +0200 Subject: [PATCH] added bypass for urlx.one https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/34 --- Bypass_All_Shortlinks.meta.js | 3 ++- Bypass_All_Shortlinks.user.js | 11 ++++++++++- extra_bypasses/extra_bypasses.user.js | 9 +++++++++ supported_sites.txt | 1 + 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 4357ebb..b45c023 100644 --- a/Bypass_All_Shortlinks.meta.js +++ b/Bypass_All_Shortlinks.meta.js @@ -4,7 +4,7 @@ // @run-at document-start // @author Amm0ni4 // @noframes -// @version 91.8.14 +// @version 91.8.15 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -775,6 +775,7 @@ // @include /(ay.live|aylink.co|gitlink.pro)\/[^\/]+$/ // @include /(lopteapi.com|1link.vip|blitly.io|web1s.com|megalink.pro)\/[^\/]+$/ // @include /short-url.link\/[^\/]+$/ +// @include /urlx.one\/[^\/]+$/ // @include /filecrypt.(cc|co)/ // @include /(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/ // @include /mega-enlace.com/ diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index f78379d..4ddd467 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -4,7 +4,7 @@ // @run-at document-start // @author Amm0ni4 // @noframes -// @version 91.8.14 +// @version 91.8.15 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -775,6 +775,7 @@ // @include /(ay.live|aylink.co|gitlink.pro)\/[^\/]+$/ // @include /(lopteapi.com|1link.vip|blitly.io|web1s.com|megalink.pro)\/[^\/]+$/ // @include /short-url.link\/[^\/]+$/ +// @include /urlx.one\/[^\/]+$/ // @include /filecrypt.(cc|co)/ // @include /(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/ // @include /mega-enlace.com/ @@ -2348,6 +2349,14 @@ // https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/32 /short-url.link\/[^\/]+$/.test(url) ? afterDOMLoaded(function() {redirectIfExists('a.go-to-button')}) : null; + // https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/34 + const redirectIfNotDisabled2 = (selector) => { let intervalId = setInterval(() => { let linkButton = document.querySelector(selector + ':not(.disabled)'); if (linkButton && !linkButton.href.includes('/undefined') && isValidUrl(linkButton.href)) { clearInterval(intervalId); setTimeout(function() {redirect(linkButton.href);}, 500) } }, 500); }; + if (/urlx.one\/[^\/]+$/.test(url)) { afterDOMLoaded(function() { + redirectIfNotDisabled2('a.get-link'); + const overlay = Object.assign(document.createElement('div'), {style: 'position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); color: #fff; font-family: Arial, sans-serif; font-size: 44px; text-align: center; padding-top: 50%;', innerText: 'Bypassing... Wait ~5s'}); + document.body.appendChild(overlay); + }) } + })(); (function() { diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index b386a42..4db8fde 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -132,6 +132,7 @@ // @include /(ay.live|aylink.co|gitlink.pro)\/[^\/]+$/ // @include /(lopteapi.com|1link.vip|blitly.io|web1s.com|megalink.pro)\/[^\/]+$/ // @include /short-url.link\/[^\/]+$/ +// @include /urlx.one\/[^\/]+$/ // @run-at document-start // ==/UserScript== @@ -627,6 +628,14 @@ // https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/32 /short-url.link\/[^\/]+$/.test(url) ? afterDOMLoaded(function() {redirectIfExists('a.go-to-button')}) : null; + // https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/34 + const redirectIfNotDisabled2 = (selector) => { let intervalId = setInterval(() => { let linkButton = document.querySelector(selector + ':not(.disabled)'); if (linkButton && !linkButton.href.includes('/undefined') && isValidUrl(linkButton.href)) { clearInterval(intervalId); setTimeout(function() {redirect(linkButton.href);}, 500) } }, 500); }; + if (/urlx.one\/[^\/]+$/.test(url)) { afterDOMLoaded(function() { + redirectIfNotDisabled2('a.get-link'); + const overlay = Object.assign(document.createElement('div'), {style: 'position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); color: #fff; font-family: Arial, sans-serif; font-size: 44px; text-align: center; padding-top: 50%;', innerText: 'Bypassing... Wait ~5s'}); + document.body.appendChild(overlay); + }) } + })(); (function() { diff --git a/supported_sites.txt b/supported_sites.txt index 613e95e..09d4d5e 100644 --- a/supported_sites.txt +++ b/supported_sites.txt @@ -754,6 +754,7 @@ r1.foxylinks.site /(ay.live|aylink.co|gitlink.pro)\/[^\/]+$/ /(lopteapi.com|1link.vip|blitly.io|web1s.com|megalink.pro)\/[^\/]+$/ /short-url.link\/[^\/]+$/ +/urlx.one\/[^\/]+$/ /filecrypt.(cc|co)/ /(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/ /mega-enlace.com/