minor fix

disabled the auto-click on adbypass.eu because if I also put the alert popup to say the button was clicked, it stops the script in chromium
This commit is contained in:
Amm0ni4 2024-02-26 01:33:12 +01:00
parent 9fe2abf79c
commit 2e53a317f1
2 changed files with 2 additions and 14 deletions

View file

@ -1755,13 +1755,7 @@
if (savedShortlink && inputField) { if (savedShortlink && inputField) {
inputField.value = savedShortlink; inputField.value = savedShortlink;
GM_deleteValue('savedShortlink'); GM_deleteValue('savedShortlink');
setTimeout(function() { //setTimeout(function() {let bypassButton = document.querySelector('#bttn');if (bypassButton) {bypassButton.click();alert('Bypass started. Wait a few seconds.');}}, 500);
let bypassButton = document.querySelector('#bttn');
if (bypassButton) {
bypassButton.click();
alert('Bypass started. Wait a few seconds.')
}
}, 500);// Wait 0.5 to press the button
} }
}); });
} else if (/adbypass.eu\/unblock/.test(url)) { } else if (/adbypass.eu\/unblock/.test(url)) {

View file

@ -23,13 +23,7 @@
if (savedShortlink && inputField) { if (savedShortlink && inputField) {
inputField.value = savedShortlink; inputField.value = savedShortlink;
GM_deleteValue('savedShortlink'); GM_deleteValue('savedShortlink');
setTimeout(function() { //setTimeout(function() {let bypassButton = document.querySelector('#bttn');if (bypassButton) {bypassButton.click();alert('Bypass started. Wait a few seconds.');}}, 500);
let bypassButton = document.querySelector('#bttn');
if (bypassButton) {
bypassButton.click();
alert('Bypass started. Wait a few seconds.')
}
}, 500);// Wait 0.5 to press the button
} }
}); });
} else if (/adbypass.eu\/unblock/.test(url)) { } else if (/adbypass.eu\/unblock/.test(url)) {