From 65370ea971866f0cce5b9b4465f11c9a7a6a7bdd Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Thu, 15 Feb 2024 14:11:51 +0100 Subject: [PATCH] simplify shrinkme.us and shareus.io bypasses --- 4_add_extra_bypasses.py | 2 +- Bypass_All_Shortlinks.meta.js | 6 +- Bypass_All_Shortlinks.user.js | 76 ++++++++----------------- extra_bypasses/shareus.io.user.js | 26 --------- extra_bypasses/shrinkme.us.user.js | 23 -------- extra_bypasses/simple_redirects.user.js | 13 ++++- supported_sites.txt | 6 +- 7 files changed, 42 insertions(+), 110 deletions(-) delete mode 100644 extra_bypasses/shareus.io.user.js delete mode 100644 extra_bypasses/shrinkme.us.user.js diff --git a/4_add_extra_bypasses.py b/4_add_extra_bypasses.py index f927b63..7d2e47d 100644 --- a/4_add_extra_bypasses.py +++ b/4_add_extra_bypasses.py @@ -31,7 +31,7 @@ def process_js_files(folder_path, target_file): after_user_script_lines = [] # Traverse through the files in the folder - for filename in os.listdir(folder_path): + for filename in sorted(os.listdir(folder_path)): if filename.endswith(".js"): with open(os.path.join(folder_path, filename), 'r', encoding='utf-8') as f: lines = f.readlines() diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 2efcedd..6747d2e 100644 --- a/Bypass_All_Shortlinks.meta.js +++ b/Bypass_All_Shortlinks.meta.js @@ -652,8 +652,7 @@ // @match *://*.r1.foxylinks.site/* // @match https://dropgalaxy.com/drive/* // @match https://dropgalaxy.co/drive/* -// @match https://*.shrinkme.us/* -// @match *://*.shareus.io/* +// @match https://linkspy.cc/tr/* // @include /((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/ // @include /mundopolo.net/ // @include /comohoy.com/ @@ -664,7 +663,8 @@ // @include /cybercityhelp.in/ // @include /www.akcartoons.in/ // @include /go.moonlinks.in/ -// @match https://linkspy.cc/tr/* +// @include /shrinkme.us/ +// @include /shareus.io/ // @require https://code.jquery.com/jquery-2.1.1.min.js // @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 diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index da879f0..ba4a71c 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -652,8 +652,7 @@ // @match *://*.r1.foxylinks.site/* // @match https://dropgalaxy.com/drive/* // @match https://dropgalaxy.co/drive/* -// @match https://*.shrinkme.us/* -// @match *://*.shareus.io/* +// @match https://linkspy.cc/tr/* // @include /((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/ // @include /mundopolo.net/ // @include /comohoy.com/ @@ -664,7 +663,8 @@ // @include /cybercityhelp.in/ // @include /www.akcartoons.in/ // @include /go.moonlinks.in/ -// @match https://linkspy.cc/tr/* +// @include /shrinkme.us/ +// @include /shareus.io/ // @require https://code.jquery.com/jquery-2.1.1.min.js // @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 @@ -1727,41 +1727,23 @@ })(); // ----- ----- ----- -// ----- Bypass for shrinkme.us ----- +// ----- Bypass for linkspy.cc + clicksfly.com ----- (function() { 'use strict'; - if (window.location.href.startsWith("https://shrinkme.us/")) { - function waitForButton() { - var button = document.getElementById('invisibleCaptchaShortlink'); - if (button) { - button.click(); - } else { - setTimeout(waitForButton, 1000); // Check every second - } + if ( window.location.href.startsWith('https://linkspy.cc/tr/') ) { + + //----Bypass linkspy.cc---- + var decodedUrl = atob(window.location.href.split('/tr/')[1]); + var urlParam = new URLSearchParams(decodedUrl).get('url'); + if (!decodedUrl.startsWith('https://clicksfly.com/') || !urlParam) { + window.location.assign(decodedUrl); + + //----Bypass clicksfly.com---- + } else if (decodedUrl.startsWith('https://clicksfly.com/') && urlParam) { + window.location.assign(atob(urlParam)); } - waitForButton(); } -})(); -// ----- ----- ----- - -// ----- Bypass for shareus.io ----- -(function() { - 'use strict'; - if (window.location.hostname === 'shareus.io') { - document.addEventListener('DOMContentLoaded', function() { // Wait for the page to be loaded - - function clickButton() { - const button = document.querySelector("#root > div > main > div.main-container-1 > div.main-container-2 > div:nth-child(1) > div.adunit-container > button"); - if (button) { - button.click(); - //clearInterval(intervalId); // Stop attempting once clicked - } - } - const intervalId = setInterval(clickButton, 1000); // Set interval to attempt clicking every 1 second - - }); - } })(); // ----- ----- ----- @@ -1794,8 +1776,11 @@ const url = window.location.href const redirect = finalUrl => window.location.assign(finalUrl); const isValidUrl = url => { try { new URL(url); return true; } catch (error) { return false; } }; + const clickIfExists = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (button) { clearInterval(intervalId); button.click(); } }, 1000); }; + const clickIfExistsNonStop = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector + ':not(.disabled)'); if (button) { button.click(); } }, 500); }; const redirectIfNotDisabled = (selector) => { let intervalId = setInterval(() => { let linkButton = document.querySelector(selector + ':not(.disabled)'); if (linkButton) { clearInterval(intervalId); redirect(linkButton.href); } }, 500); }; const afterDOMLoaded = (callback) => document.addEventListener('DOMContentLoaded', callback); + const clickIfNotDisabled = (buttonSelector) => { let intervalId = setInterval(() => { let button = document.querySelector(buttonSelector); if (!button.hasAttribute('disabled')) { clearInterval(intervalId); setTimeout(function() {button.click();}, 1000) } }, 500); }; //peliculasgd.net /mundopolo.net/.test(url) ? redirect(decodeURIComponent(atob(atob(atob(url.split('#!')[1]))))) : null; @@ -1811,7 +1796,7 @@ //anime-world.in and mandranime.com /(iconicblogger.com|segurosdevida.site)/.test(url) ? afterDOMLoaded(function() {redirect(document.getElementById('wpsafe-link').querySelector('a').getAttribute('onclick').match(/window\.open\('([^']*)'/)[1])}) : null; - + //anime-world.in 2nd step /link.unlockner.com/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('.btn.get-link')}) : null; @@ -1823,26 +1808,11 @@ /www.akcartoons.in/.test(url) ? afterDOMLoaded(function() {redirect(document.querySelector('a[href*="go.moonlinks.in"]'))}) : null; /go.moonlinks.in/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.btn')}) : null; -})(); -// ----- ----- ----- + //shrinkme.us + /shrinkme.us/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#invisibleCaptchaShortlink')}) : null; - -// ----- Bypass for linkspy.cc + clicksfly.com ----- -(function() { - 'use strict'; - if ( window.location.href.startsWith('https://linkspy.cc/tr/') ) { - - //----Bypass linkspy.cc---- - var decodedUrl = atob(window.location.href.split('/tr/')[1]); - var urlParam = new URLSearchParams(decodedUrl).get('url'); - if (!decodedUrl.startsWith('https://clicksfly.com/') || !urlParam) { - window.location.assign(decodedUrl); - - //----Bypass clicksfly.com---- - } else if (decodedUrl.startsWith('https://clicksfly.com/') && urlParam) { - window.location.assign(atob(urlParam)); - } - } + //shareus.io + /shareus.io/.test(url) ? afterDOMLoaded(function() {clickIfExistsNonStop('#root > div > main > div.main-container-1 > div.main-container-2 > div:nth-child(1) > div.adunit-container > button')}) : null; })(); // ----- ----- ----- diff --git a/extra_bypasses/shareus.io.user.js b/extra_bypasses/shareus.io.user.js deleted file mode 100644 index c03b3ad..0000000 --- a/extra_bypasses/shareus.io.user.js +++ /dev/null @@ -1,26 +0,0 @@ -// ==UserScript== -// @name shareus.io bypass -// @match *://*.shareus.io/* -// @run-at document-start -// ==/UserScript== - -// ----- Bypass for shareus.io ----- -(function() { - 'use strict'; - if (window.location.hostname === 'shareus.io') { - document.addEventListener('DOMContentLoaded', function() { // Wait for the page to be loaded - - function clickButton() { - const button = document.querySelector("#root > div > main > div.main-container-1 > div.main-container-2 > div:nth-child(1) > div.adunit-container > button"); - if (button) { - button.click(); - //clearInterval(intervalId); // Stop attempting once clicked - } - } - const intervalId = setInterval(clickButton, 1000); // Set interval to attempt clicking every 1 second - - }); - } -})(); -// ----- ----- ----- - diff --git a/extra_bypasses/shrinkme.us.user.js b/extra_bypasses/shrinkme.us.user.js deleted file mode 100644 index 99395ab..0000000 --- a/extra_bypasses/shrinkme.us.user.js +++ /dev/null @@ -1,23 +0,0 @@ -// ==UserScript== -// @name shrinkme.us bypass -// @match https://*.shrinkme.us/* -// @run-at document-start -// ==/UserScript== - -// ----- Bypass for shrinkme.us ----- -(function() { - 'use strict'; - if (window.location.href.startsWith("https://shrinkme.us/")) { - function waitForButton() { - var button = document.getElementById('invisibleCaptchaShortlink'); - if (button) { - button.click(); - } else { - setTimeout(waitForButton, 1000); // Check every second - } - } - waitForButton(); - } -})(); -// ----- ----- ----- - diff --git a/extra_bypasses/simple_redirects.user.js b/extra_bypasses/simple_redirects.user.js index 2c6de70..b19e1e2 100644 --- a/extra_bypasses/simple_redirects.user.js +++ b/extra_bypasses/simple_redirects.user.js @@ -9,6 +9,8 @@ // @include /cybercityhelp.in/ // @include /www.akcartoons.in/ // @include /go.moonlinks.in/ +// @include /shrinkme.us/ +// @include /shareus.io/ // @run-at document-start // ==/UserScript== @@ -18,8 +20,11 @@ const url = window.location.href const redirect = finalUrl => window.location.assign(finalUrl); const isValidUrl = url => { try { new URL(url); return true; } catch (error) { return false; } }; + const clickIfExists = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (button) { clearInterval(intervalId); button.click(); } }, 1000); }; + const clickIfExistsNonStop = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector + ':not(.disabled)'); if (button) { button.click(); } }, 500); }; const redirectIfNotDisabled = (selector) => { let intervalId = setInterval(() => { let linkButton = document.querySelector(selector + ':not(.disabled)'); if (linkButton) { clearInterval(intervalId); redirect(linkButton.href); } }, 500); }; const afterDOMLoaded = (callback) => document.addEventListener('DOMContentLoaded', callback); + const clickIfNotDisabled = (buttonSelector) => { let intervalId = setInterval(() => { let button = document.querySelector(buttonSelector); if (!button.hasAttribute('disabled')) { clearInterval(intervalId); setTimeout(function() {button.click();}, 1000) } }, 500); }; //peliculasgd.net /mundopolo.net/.test(url) ? redirect(decodeURIComponent(atob(atob(atob(url.split('#!')[1]))))) : null; @@ -35,7 +40,7 @@ //anime-world.in and mandranime.com /(iconicblogger.com|segurosdevida.site)/.test(url) ? afterDOMLoaded(function() {redirect(document.getElementById('wpsafe-link').querySelector('a').getAttribute('onclick').match(/window\.open\('([^']*)'/)[1])}) : null; - + //anime-world.in 2nd step /link.unlockner.com/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('.btn.get-link')}) : null; @@ -47,6 +52,12 @@ /www.akcartoons.in/.test(url) ? afterDOMLoaded(function() {redirect(document.querySelector('a[href*="go.moonlinks.in"]'))}) : null; /go.moonlinks.in/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.btn')}) : null; + //shrinkme.us + /shrinkme.us/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#invisibleCaptchaShortlink')}) : null; + + //shareus.io + /shareus.io/.test(url) ? afterDOMLoaded(function() {clickIfExistsNonStop('#root > div > main > div.main-container-1 > div.main-container-2 > div:nth-child(1) > div.adunit-container > button')}) : null; + })(); // ----- ----- ----- diff --git a/supported_sites.txt b/supported_sites.txt index c180c71..bf004fb 100644 --- a/supported_sites.txt +++ b/supported_sites.txt @@ -637,8 +637,7 @@ sigmalinks.in r1.foxylinks.site https://dropgalaxy.com/drive/* https://dropgalaxy.co/drive/* -https://*.shrinkme.us/* -*://*.shareus.io/* +https://linkspy.cc/tr/* /((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/ /mundopolo.net/ /comohoy.com/ @@ -649,4 +648,5 @@ https://*.shrinkme.us/* /cybercityhelp.in/ /www.akcartoons.in/ /go.moonlinks.in/ -https://linkspy.cc/tr/* +/shrinkme.us/ +/shareus.io/