minor fix to last commit

This commit is contained in:
Amm0ni4 2024-02-25 15:09:48 +01:00
parent 56662a8946
commit 7f8869d54f
2 changed files with 10 additions and 4 deletions

View file

@ -1754,8 +1754,11 @@
inputField.value = savedShortlink; inputField.value = savedShortlink;
GM_deleteValue('savedShortlink'); GM_deleteValue('savedShortlink');
setTimeout(function() { setTimeout(function() {
document.querySelector('#bttn').click(); let bypassButton = document.querySelector('#bttn');
alert('Bypass started. Wait a few seconds.') if (bypassButton) {
bypassButton.click();
alert('Bypass started. Wait a few seconds.')
}
}, 500);// Wait 0.5 to press the button }, 500);// Wait 0.5 to press the button
} }
}); });

View file

@ -24,8 +24,11 @@
inputField.value = savedShortlink; inputField.value = savedShortlink;
GM_deleteValue('savedShortlink'); GM_deleteValue('savedShortlink');
setTimeout(function() { setTimeout(function() {
document.querySelector('#bttn').click(); let bypassButton = document.querySelector('#bttn');
alert('Bypass started. Wait a few seconds.') if (bypassButton) {
bypassButton.click();
alert('Bypass started. Wait a few seconds.')
}
}, 500);// Wait 0.5 to press the button }, 500);// Wait 0.5 to press the button
} }
}); });