From 8b255c4aa0c4eaa65462dfbdd141a0a607574be2 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Fri, 14 Feb 2025 14:55:39 +0100 Subject: [PATCH] simplify code, no changes --- Bypass_All_Shortlinks.user.js | 6 ++++-- extra_bypasses/extra_bypasses.user.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 9e414e0..66e310d 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -2495,8 +2495,10 @@ } }) : null; - /pahe.plus/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#invisibleCaptchaShortlink')}) : null; - /pahe.plus/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.get-link')}) : null; + /pahe.plus/.test(url) ? afterDOMLoaded(function() { + clickIfNotDisabled('#invisibleCaptchaShortlink'); + redirectIfNotDisabled('a.get-link'); + }) : null; /old.pahe.plus/.test(url) ? afterDOMLoaded(function() {clickIfExists('a.btn:nth-child(1)')}) : null; diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index 6bb104c..715f8f4 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -903,8 +903,10 @@ } }) : null; - /pahe.plus/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#invisibleCaptchaShortlink')}) : null; - /pahe.plus/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.get-link')}) : null; + /pahe.plus/.test(url) ? afterDOMLoaded(function() { + clickIfNotDisabled('#invisibleCaptchaShortlink'); + redirectIfNotDisabled('a.get-link'); + }) : null; /old.pahe.plus/.test(url) ? afterDOMLoaded(function() {clickIfExists('a.btn:nth-child(1)')}) : null;