diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 0037a33..deb2589 100644 --- a/Bypass_All_Shortlinks.meta.js +++ b/Bypass_All_Shortlinks.meta.js @@ -3,7 +3,7 @@ // @namespace Violentmonkey Scripts // @run-at document-start // @author Amm0ni4 -// @version 91.5.18 +// @version 91.5.19 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -749,6 +749,8 @@ // @include /tii.la|oko.sh|shrinke.me|clk.wiki|techy.veganab.co|atglinks.com/ // @include /shon.xyz/ // @include /veganab.co\/\?link=/ +// @include /veganab.co/ +// @include /camdigest.com/ // @include /tawda.xyz\/tag/ // @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 5cbfaaa..75b6117 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -3,7 +3,7 @@ // @namespace Violentmonkey Scripts // @run-at document-start // @author Amm0ni4 -// @version 91.5.18 +// @version 91.5.19 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -749,6 +749,8 @@ // @include /tii.la|oko.sh|shrinke.me|clk.wiki|techy.veganab.co|atglinks.com/ // @include /shon.xyz/ // @include /veganab.co\/\?link=/ +// @include /veganab.co/ +// @include /camdigest.com/ // @include /tawda.xyz\/tag/ // @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/ @@ -2094,7 +2096,15 @@ /gplinks.co\/[^/#]+\/(?:#|\?pid=)/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#link-btn > a')}) : null; // https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/10 - /veganab.co\/\?link=/.test(url) ? redirect('https://za.gl/' + url.split('?link=')[1]) : null; + // /veganab.co\/\?link=/.test(url) ? redirect('https://za.gl/' + url.split('?link=')[1]) : null; + + // https://greasyfork.org/en/scripts/431691-bypass-all-shortlinks/discussions/165265 + /veganab.co/.test(url) ? popupsToRedirects() : null; + /veganab.co/.test(url) ? afterDOMLoaded(function() {clickIfExists('button.btn-hover:nth-child(2)')}) : null; + const extractLinkFromButtonOnclick = buttonElement => buttonElement.getAttribute("onclick").match(/window\.open\('([^']+)'/)[1]; + const redirectToOnclickIfExists = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (button) { clearInterval(intervalId); redirect(extractLinkFromButtonOnclick(button)) } }, 500); }; + /camdigest.com/.test(url) ? afterDOMLoaded(function() {redirectToOnclickIfExists('#wpsafe-link > a:nth-child(1) > button:nth-child(1)')}) : null; + const clickIfCorrectText = (selector, textContent) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (button && button.innerText.includes(textContent) ) { clearInterval(intervalId); setTimeout(() => { button.click();}, 500); }}, 500); }; /tawda.xyz\/tag/.test(url) ? popupsToRedirects() : null; /tawda.xyz\/tag/.test(url) ? afterDOMLoaded(function() {clickIfCorrectText('#continueButton', 'Click to continue')}) : null; diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index 47469c7..87bace4 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -104,6 +104,8 @@ // @include /tii.la|oko.sh|shrinke.me|clk.wiki|techy.veganab.co|atglinks.com/ // @include /shon.xyz/ // @include /veganab.co\/\?link=/ +// @include /veganab.co/ +// @include /camdigest.com/ // @include /tawda.xyz\/tag/ // @run-at document-start // ==/UserScript== @@ -371,7 +373,15 @@ /gplinks.co\/[^/#]+\/(?:#|\?pid=)/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#link-btn > a')}) : null; // https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/10 - /veganab.co\/\?link=/.test(url) ? redirect('https://za.gl/' + url.split('?link=')[1]) : null; + // /veganab.co\/\?link=/.test(url) ? redirect('https://za.gl/' + url.split('?link=')[1]) : null; + + // https://greasyfork.org/en/scripts/431691-bypass-all-shortlinks/discussions/165265 + /veganab.co/.test(url) ? popupsToRedirects() : null; + /veganab.co/.test(url) ? afterDOMLoaded(function() {clickIfExists('button.btn-hover:nth-child(2)')}) : null; + const extractLinkFromButtonOnclick = buttonElement => buttonElement.getAttribute("onclick").match(/window\.open\('([^']+)'/)[1]; + const redirectToOnclickIfExists = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (button) { clearInterval(intervalId); redirect(extractLinkFromButtonOnclick(button)) } }, 500); }; + /camdigest.com/.test(url) ? afterDOMLoaded(function() {redirectToOnclickIfExists('#wpsafe-link > a:nth-child(1) > button:nth-child(1)')}) : null; + const clickIfCorrectText = (selector, textContent) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (button && button.innerText.includes(textContent) ) { clearInterval(intervalId); setTimeout(() => { button.click();}, 500); }}, 500); }; /tawda.xyz\/tag/.test(url) ? popupsToRedirects() : null; /tawda.xyz\/tag/.test(url) ? afterDOMLoaded(function() {clickIfCorrectText('#continueButton', 'Click to continue')}) : null; diff --git a/supported_sites.txt b/supported_sites.txt index 79d0883..43d2673 100644 --- a/supported_sites.txt +++ b/supported_sites.txt @@ -731,6 +731,8 @@ r1.foxylinks.site /tii.la|oko.sh|shrinke.me|clk.wiki|techy.veganab.co|atglinks.com/ /shon.xyz/ /veganab.co\/\?link=/ +/veganab.co/ +/camdigest.com/ /tawda.xyz\/tag/ /(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/ /mega-enlace.com/