From a52c84051c7d8d72038babf7b4e58f45602533a6 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Mon, 19 Feb 2024 05:46:03 +0100 Subject: [PATCH] added back linkvertise (fixed) redirecting to bypass.city --- Bypass_All_Shortlinks.meta.js | 3 ++- Bypass_All_Shortlinks.user.js | 6 ++++-- README.md | 1 - extra_bypasses/simple_redirects.user.js | 4 +++- supported_sites.txt | 1 + 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index f91bf02..22266f8 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 Bloggerpemula -// @version 91.1.9 +// @version 91.1.10 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -678,6 +678,7 @@ // @include /www.itscybertech.com/ // @include /thegadgetking.in/ // @include /(linkvertise.com|linkvertise.net|link-to.net).*\?r=/ +// @include /^(https?:\/\/)(linkvertise.com|linkvertise.net|link-to.net)(?!.*\?r=)/ // @exclude /^(https?:\/\/)(.+)?((advertisingexcel|talkforfitness|rsadnetworkinfo|rsinsuranceinfo|rsfinanceinfo|rssoftwareinfo|rshostinginfo|rseducationinfo|gametechreviewer|vegan4k|phineypet|batmanfactor|techedifier|urlhives|linkhives|github|freeoseocheck|greenenez|aliyun|reddit|bing|live|yahoo|wiki-topia|edonmanor|vrtier|whatsapp|gearsadviser|edonmanor|tunebug|menrealitycalc|amazon|ebay|payoneer|paypal|skrill|stripe|tipalti|wise|discord|tokopedia|taobao|aliexpress|(cloud|mail|translate|analytics|accounts|myaccount|contacts|clients6|developers|payments|pay|ogs|safety|wallet).google).com|(thumb8|thumb9|crewbase|crewus|shinchu|shinbhu|ultraten|uniqueten|topcryptoz|allcryptoz|coinsvalue|cookinguide|cryptowidgets|webfreetools|carstopia|makeupguide|carsmania).net|(linksfly|shortsfly|urlsfly|wefly|blog24).me|(greasyfork|openuserjs|adarima|telegram).org|mcrypto.club|misterio.ro|insurancegold.in|coinscap.info|(shopee|lazada|rakuten).*|(dana|ovo).id)(\/.*)/ // @downloadURL https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/raw/branch/main/Bypass_All_Shortlinks.user.js // @updateURL https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/raw/branch/main/Bypass_All_Shortlinks.meta.js diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 94917a9..9be81dc 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 Bloggerpemula -// @version 91.1.9 +// @version 91.1.10 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -678,6 +678,7 @@ // @include /www.itscybertech.com/ // @include /thegadgetking.in/ // @include /(linkvertise.com|linkvertise.net|link-to.net).*\?r=/ +// @include /^(https?:\/\/)(linkvertise.com|linkvertise.net|link-to.net)(?!.*\?r=)/ // @exclude /^(https?:\/\/)(.+)?((advertisingexcel|talkforfitness|rsadnetworkinfo|rsinsuranceinfo|rsfinanceinfo|rssoftwareinfo|rshostinginfo|rseducationinfo|gametechreviewer|vegan4k|phineypet|batmanfactor|techedifier|urlhives|linkhives|github|freeoseocheck|greenenez|aliyun|reddit|bing|live|yahoo|wiki-topia|edonmanor|vrtier|whatsapp|gearsadviser|edonmanor|tunebug|menrealitycalc|amazon|ebay|payoneer|paypal|skrill|stripe|tipalti|wise|discord|tokopedia|taobao|aliexpress|(cloud|mail|translate|analytics|accounts|myaccount|contacts|clients6|developers|payments|pay|ogs|safety|wallet).google).com|(thumb8|thumb9|crewbase|crewus|shinchu|shinbhu|ultraten|uniqueten|topcryptoz|allcryptoz|coinsvalue|cookinguide|cryptowidgets|webfreetools|carstopia|makeupguide|carsmania).net|(linksfly|shortsfly|urlsfly|wefly|blog24).me|(greasyfork|openuserjs|adarima|telegram).org|mcrypto.club|misterio.ro|insurancegold.in|coinscap.info|(shopee|lazada|rakuten).*|(dana|ovo).id)(\/.*)/ // @downloadURL https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/raw/branch/main/Bypass_All_Shortlinks.user.js // @updateURL https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/raw/branch/main/Bypass_All_Shortlinks.meta.js @@ -1844,8 +1845,9 @@ /www.itscybertech.com/.test(url) ? clickIfVisible('.download') : null; /thegadgetking.in/.test(url) ? popupsToRedirects() && afterDOMLoaded(function() {clickIfExists('#openbtn')}) : null; - // Linkvertise easy case (when there is '?r=') + // Linkvertise /(linkvertise.com|linkvertise.net|link-to.net).*\?r=/.test(url) ? redirect(atob((new URLSearchParams(window.location.search)).get('r'))) : null; + /^(https?:\/\/)(linkvertise.com|linkvertise.net|link-to.net)(?!.*\?r=)/.test(url) ? redirect('https://adbypass.org/bypass?bypass=' + encodeURIComponent(url)) : null; })(); // ----- ----- ----- diff --git a/README.md b/README.md index e3b51ae..44f0556 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ Automatically bypass many link shorteners ([supported shorteners](https://codebe (you need a userscript manager like [ViolentMonkey](https://violentmonkey.github.io/) installed in your web browser) ## Improvements in this fork -- **Disabled the linkvertise bypass for the complicated cases**. For those cases where the origin URL doesn't contain `?r=`, use [linkvertise and krnl bypasser](https://greasyfork.org/scripts/427869), which works better for that link shortener. (I disabled it to avoid conflicts between both scripts.) - **Added extra bypasses** from the [extra_bypasses](https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/src/branch/main/extra_bypasses) folder. - **No loading the script indiscriminately on every site.** The script will be loaded only for the sites that are supported. (the original userscript is loaded in every site you visit which is not necessary). - Note: By default, the script will not run on the following sites (these can be enabled manually): diff --git a/extra_bypasses/simple_redirects.user.js b/extra_bypasses/simple_redirects.user.js index be6e54a..da7b116 100644 --- a/extra_bypasses/simple_redirects.user.js +++ b/extra_bypasses/simple_redirects.user.js @@ -30,6 +30,7 @@ // @include /www.itscybertech.com/ // @include /thegadgetking.in/ // @include /(linkvertise.com|linkvertise.net|link-to.net).*\?r=/ +// @include /^(https?:\/\/)(linkvertise.com|linkvertise.net|link-to.net)(?!.*\?r=)/ // @run-at document-start // ==/UserScript== @@ -177,8 +178,9 @@ /www.itscybertech.com/.test(url) ? clickIfVisible('.download') : null; /thegadgetking.in/.test(url) ? popupsToRedirects() && afterDOMLoaded(function() {clickIfExists('#openbtn')}) : null; - // Linkvertise easy case (when there is '?r=') + // Linkvertise /(linkvertise.com|linkvertise.net|link-to.net).*\?r=/.test(url) ? redirect(atob((new URLSearchParams(window.location.search)).get('r'))) : null; + /^(https?:\/\/)(linkvertise.com|linkvertise.net|link-to.net)(?!.*\?r=)/.test(url) ? redirect('https://adbypass.org/bypass?bypass=' + encodeURIComponent(url)) : null; })(); // ----- ----- ----- diff --git a/supported_sites.txt b/supported_sites.txt index 18555ef..d3deed6 100644 --- a/supported_sites.txt +++ b/supported_sites.txt @@ -663,3 +663,4 @@ r1.foxylinks.site /www.itscybertech.com/ /thegadgetking.in/ /(linkvertise.com|linkvertise.net|link-to.net).*\?r=/ +/^(https?:\/\/)(linkvertise.com|linkvertise.net|link-to.net)(?!.*\?r=)/