diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index c492f2f..916f091 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -1754,8 +1754,11 @@ inputField.value = savedShortlink; GM_deleteValue('savedShortlink'); setTimeout(function() { - document.querySelector('#bttn').click(); - alert('Bypass started. Wait a few seconds.') + let bypassButton = document.querySelector('#bttn'); + if (bypassButton) { + bypassButton.click(); + alert('Bypass started. Wait a few seconds.') + } }, 500);// Wait 0.5 to press the button } }); diff --git a/extra_bypasses/ad-maven.user.js b/extra_bypasses/ad-maven.user.js index e54778c..a5b4030 100644 --- a/extra_bypasses/ad-maven.user.js +++ b/extra_bypasses/ad-maven.user.js @@ -24,8 +24,11 @@ inputField.value = savedShortlink; GM_deleteValue('savedShortlink'); setTimeout(function() { - document.querySelector('#bttn').click(); - alert('Bypass started. Wait a few seconds.') + let bypassButton = document.querySelector('#bttn'); + if (bypassButton) { + bypassButton.click(); + alert('Bypass started. Wait a few seconds.') + } }, 500);// Wait 0.5 to press the button } });