From bce821271243aaab57a5336befe83561bee24441 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Sat, 14 Sep 2024 13:55:03 +0200 Subject: [PATCH] refactor atozcartoonist fix --- Bypass_All_Shortlinks.user.js | 12 +++++++++--- extra_bypasses/extra_bypasses.user.js | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index dd3654b..bcd9594 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -1845,9 +1845,15 @@ /link.unlockner.com/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('.btn.get-link')}) : null; //atozcartoonist.me - /cybercityhelp.in/.test(url) ? afterDOMLoaded(function() {document.querySelector('#username').value = 'https://www.thomann.de/' + Math.random().toString(36).substring(2, 12)}) : null; - /cybercityhelp.in/.test(url) ? afterDOMLoaded(function() {document.querySelector('#tp982').click()}) : null; - /cybercityhelp.in/.test(url) ? afterDOMLoaded(function() {if (!document.querySelector('#tp982')) {redirect(document.querySelector('a[href*="go.moonlinks.in"]'))}}) : null; + /cybercityhelp.in/.test(url) ? afterDOMLoaded(function() { + const formSubmitButton = document.querySelector('#tp982'); + if (formSubmitButton) { + document.querySelector('#username').value = 'https://www.thomann.de/' + Math.random().toString(36).substring(2, 12); + formSubmitButton.click(); + } else { + redirect(document.querySelector('a[href*="go.moonlinks.in"]')); + } + }) : null; /go.moonlinks.in/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.btn')}) : null; // linkneverdie.net diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index a5144b8..f7aa709 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -267,9 +267,15 @@ /link.unlockner.com/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('.btn.get-link')}) : null; //atozcartoonist.me - /cybercityhelp.in/.test(url) ? afterDOMLoaded(function() {document.querySelector('#username').value = 'https://www.thomann.de/' + Math.random().toString(36).substring(2, 12)}) : null; - /cybercityhelp.in/.test(url) ? afterDOMLoaded(function() {document.querySelector('#tp982').click()}) : null; - /cybercityhelp.in/.test(url) ? afterDOMLoaded(function() {if (!document.querySelector('#tp982')) {redirect(document.querySelector('a[href*="go.moonlinks.in"]'))}}) : null; + /cybercityhelp.in/.test(url) ? afterDOMLoaded(function() { + const formSubmitButton = document.querySelector('#tp982'); + if (formSubmitButton) { + document.querySelector('#username').value = 'https://www.thomann.de/' + Math.random().toString(36).substring(2, 12); + formSubmitButton.click(); + } else { + redirect(document.querySelector('a[href*="go.moonlinks.in"]')); + } + }) : null; /go.moonlinks.in/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.btn')}) : null; // linkneverdie.net