From 76a04562801e5f86f8f2007628303eb4b256d4eb Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Sun, 24 Mar 2024 21:49:49 +0100 Subject: [PATCH] added a bypass --- Bypass_All_Shortlinks.meta.js | 2 ++ Bypass_All_Shortlinks.user.js | 8 ++++++++ extra_bypasses/extra_bypasses.user.js | 8 ++++++++ supported_sites.txt | 2 ++ 4 files changed, 20 insertions(+) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 31513a9..19ff1a6 100644 --- a/Bypass_All_Shortlinks.meta.js +++ b/Bypass_All_Shortlinks.meta.js @@ -756,6 +756,8 @@ // @include /modijiurl.com/ // @include /4hi.in/ // @include /lnk.news/ +// @include /imagereviser.com/ +// @include /upshrink.com/ // @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/ // @include /(work.ink|workink.click)\/.*$/ diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 392fd6b..51ad0aa 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -756,6 +756,8 @@ // @include /modijiurl.com/ // @include /4hi.in/ // @include /lnk.news/ +// @include /imagereviser.com/ +// @include /upshrink.com/ // @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/ // @include /(work.ink|workink.click)\/.*$/ @@ -2252,6 +2254,12 @@ // https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/12 /lnk.news/.test(url) ? afterDOMLoaded(function() {clickIfExists('#csubmit')}) : null; + // https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-8893133 + const afterElementVisible = (selector, callback) => {let intervalId = setInterval(() => {let element = document.querySelector(selector);if (element && (element.style.display.includes('block') || !element.style.display.includes('none'))) {clearInterval(intervalId);callback();}}, 500);}; + /imagereviser.com/.test(url) ? preventForcedFocusOnWindow() : null; + /imagereviser.com/.test(url) ? afterDOMLoaded(function() {afterElementVisible('#second_btn_div', function() {document.querySelector('#bottom_btn').click();}) }) : null; + /upshrink.com/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.get-link')}) : null; + })(); (function() { diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index 1f0507f..f11cf7c 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -115,6 +115,8 @@ // @include /modijiurl.com/ // @include /4hi.in/ // @include /lnk.news/ +// @include /imagereviser.com/ +// @include /upshrink.com/ // @run-at document-start // ==/UserScript== @@ -535,6 +537,12 @@ // https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/12 /lnk.news/.test(url) ? afterDOMLoaded(function() {clickIfExists('#csubmit')}) : null; + // https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-8893133 + const afterElementVisible = (selector, callback) => {let intervalId = setInterval(() => {let element = document.querySelector(selector);if (element && (element.style.display.includes('block') || !element.style.display.includes('none'))) {clearInterval(intervalId);callback();}}, 500);}; + /imagereviser.com/.test(url) ? preventForcedFocusOnWindow() : null; + /imagereviser.com/.test(url) ? afterDOMLoaded(function() {afterElementVisible('#second_btn_div', function() {document.querySelector('#bottom_btn').click();}) }) : null; + /upshrink.com/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.get-link')}) : null; + })(); (function() { diff --git a/supported_sites.txt b/supported_sites.txt index fcf3b31..4868bfe 100644 --- a/supported_sites.txt +++ b/supported_sites.txt @@ -736,6 +736,8 @@ r1.foxylinks.site /modijiurl.com/ /4hi.in/ /lnk.news/ +/imagereviser.com/ +/upshrink.com/ /(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/ /mega-enlace.com/ /(work.ink|workink.click)\/.*$/