From 5a16aa97974b1df16935295f38b0e50ddcda3dd9 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Thu, 15 Feb 2024 20:45:38 +0100 Subject: [PATCH] simplify redbtn sites --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 35 ++++++++----------------- extra_bypasses/redbtn_sites.user.js | 28 -------------------- extra_bypasses/simple_redirects.user.js | 12 ++++++++- supported_sites.txt | 2 +- 5 files changed, 24 insertions(+), 55 deletions(-) delete mode 100644 extra_bypasses/redbtn_sites.user.js diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 257014c..143dc56 100644 --- a/Bypass_All_Shortlinks.meta.js +++ b/Bypass_All_Shortlinks.meta.js @@ -653,7 +653,6 @@ // @match https://dropgalaxy.com/drive/* // @match https://dropgalaxy.co/drive/* // @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/ // @include /sphinxanime.com\/short/ @@ -669,6 +668,7 @@ // @include /(verpeliculasonline.org|subtituladas.com)\/enlace/ // @include /links.cuevana.ac\/short/ // @include /ouo.io/ +// @include /((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/ // @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 3d4e98a..80b0e4b 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -653,7 +653,6 @@ // @match https://dropgalaxy.com/drive/* // @match https://dropgalaxy.co/drive/* // @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/ // @include /sphinxanime.com\/short/ @@ -669,6 +668,7 @@ // @include /(verpeliculasonline.org|subtituladas.com)\/enlace/ // @include /links.cuevana.ac\/short/ // @include /ouo.io/ +// @include /((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/ // @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 @@ -1752,28 +1752,6 @@ // ----- ----- ----- -// ----- redbtn sites bypass ----- -(function() { - 'use strict'; - if (/((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/.test(window.location.href)){ - document.addEventListener('DOMContentLoaded', function() { //Wait for the page to be loaded - var intervalId = setInterval(function() { //check every 0.5s - var rdBtn = document.querySelector('.rd_btn'); - if (rdBtn) { - if (rdBtn.href && rdBtn.href.includes("/?re=")){ //If redbtn has link, redirect to it - window.location.assign(rdBtn.href) - clearInterval(intervalId); - } else { //If it doesnt have link, just click it - rdBtn.click() - } - } - }, 500); - }) - } -})(); -// ----- ----- ----- - - // ----- Simple redirects ----- (function() { 'use strict'; @@ -1784,7 +1762,12 @@ 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); }; + const clickIfNotDisabled = (buttonSelector) => { let intervalId = setInterval(() => { let button = document.querySelector(buttonSelector); if (!button.hasAttribute('disabled')) { clearInterval(intervalId); setTimeout(function() {button.click();}, 500) } }, 500); }; + const redirectOrClickIfExistsEnabledWithDelay = (selector) => { afterDOMLoaded(function() { + let intervalId = setInterval(() => { + let button = document.querySelector(selector + ':not(.disabled)'); + if (button) {setTimeout(() => { isValidUrl(button.href) ? redirect(button.href) : button.click();}, 100);} + }, 500);});}; //peliculasgd.net /mundopolo.net/.test(url) ? redirect(decodeURIComponent(atob(atob(atob(url.split('#!')[1]))))) : null; @@ -1833,6 +1816,10 @@ //ouo.io /ouo.io/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#btn-main')}) : null; + //redbtn sites + /((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/.test(url) ? + redirectOrClickIfExistsEnabledWithDelay('.rd_btn') : null; + })(); // ----- ----- ----- diff --git a/extra_bypasses/redbtn_sites.user.js b/extra_bypasses/redbtn_sites.user.js deleted file mode 100644 index fb631dd..0000000 --- a/extra_bypasses/redbtn_sites.user.js +++ /dev/null @@ -1,28 +0,0 @@ -// ==UserScript== -// @name redbtn sites -// @include /((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/ -//.rd_btn sites, vegamovies.ngo, https://github.com/uBlockOrigin/uAssets/commit/f450ad365a3475c9f4143f4b447c7de994737b3a -// @run-at document-start -// ==/UserScript== - -// ----- redbtn sites bypass ----- -(function() { - 'use strict'; - if (/((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/.test(window.location.href)){ - document.addEventListener('DOMContentLoaded', function() { //Wait for the page to be loaded - var intervalId = setInterval(function() { //check every 0.5s - var rdBtn = document.querySelector('.rd_btn'); - if (rdBtn) { - if (rdBtn.href && rdBtn.href.includes("/?re=")){ //If redbtn has link, redirect to it - window.location.assign(rdBtn.href) - clearInterval(intervalId); - } else { //If it doesnt have link, just click it - rdBtn.click() - } - } - }, 500); - }) - } -})(); -// ----- ----- ----- - diff --git a/extra_bypasses/simple_redirects.user.js b/extra_bypasses/simple_redirects.user.js index c4571c9..7c7b304 100644 --- a/extra_bypasses/simple_redirects.user.js +++ b/extra_bypasses/simple_redirects.user.js @@ -15,6 +15,7 @@ // @include /(verpeliculasonline.org|subtituladas.com)\/enlace/ // @include /links.cuevana.ac\/short/ // @include /ouo.io/ +// @include /((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/ // @run-at document-start // ==/UserScript== @@ -28,7 +29,12 @@ 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); }; + const clickIfNotDisabled = (buttonSelector) => { let intervalId = setInterval(() => { let button = document.querySelector(buttonSelector); if (!button.hasAttribute('disabled')) { clearInterval(intervalId); setTimeout(function() {button.click();}, 500) } }, 500); }; + const redirectOrClickIfExistsEnabledWithDelay = (selector) => { afterDOMLoaded(function() { + let intervalId = setInterval(() => { + let button = document.querySelector(selector + ':not(.disabled)'); + if (button) {setTimeout(() => { isValidUrl(button.href) ? redirect(button.href) : button.click();}, 100);} + }, 500);});}; //peliculasgd.net /mundopolo.net/.test(url) ? redirect(decodeURIComponent(atob(atob(atob(url.split('#!')[1]))))) : null; @@ -77,6 +83,10 @@ //ouo.io /ouo.io/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#btn-main')}) : null; + //redbtn sites + /((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/.test(url) ? + redirectOrClickIfExistsEnabledWithDelay('.rd_btn') : null; + })(); // ----- ----- ----- diff --git a/supported_sites.txt b/supported_sites.txt index f77595c..6c411ca 100644 --- a/supported_sites.txt +++ b/supported_sites.txt @@ -638,7 +638,6 @@ r1.foxylinks.site https://dropgalaxy.com/drive/* https://dropgalaxy.co/drive/* 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/ /sphinxanime.com\/short/ @@ -654,3 +653,4 @@ https://linkspy.cc/tr/* /(verpeliculasonline.org|subtituladas.com)\/enlace/ /links.cuevana.ac\/short/ /ouo.io/ +/((cybertyrant|profitshort|technorozen|hubdrive.me|bestadvise4u|newztalkies|aiotechnical|cryptonewzhub|techvybes|wizitales|101desires|gdspike).com|courselinkfree.us|10desires.org|theapknews.shop|trendzguruji.me)/