profitsfly minor timer fix

https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/191
This commit is contained in:
Amm0ni4 2025-02-03 20:14:57 +01:00
parent 178fd27608
commit d0d501c4e2
3 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 93.4.39
// @version 93.4.40
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 93.4.39
// @version 93.4.40
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
@ -3095,11 +3095,11 @@
const forcedTimerInitialValue = 7;
function setTimer() {
if (window.wT9882 > forcedTimerInitialValue) {
window.wT9882 = forcedTimerInitialValue - 1;
window.wT9882 = 1;
}
}
window.wT9882 = forcedTimerInitialValue;
setInterval(setTimer, 1000);
setInterval(setTimer, 1000); //This function exists because if the site detects an adblocker, it switches the timer to 30, and that only happens in the last second or so
/* ------------ Protect buttons from being removed ------------ */
// Protect all buttons currently in the DOM

View file

@ -70,11 +70,11 @@
const forcedTimerInitialValue = 7;
function setTimer() {
if (window.wT9882 > forcedTimerInitialValue) {
window.wT9882 = forcedTimerInitialValue - 1;
window.wT9882 = 1;
}
}
window.wT9882 = forcedTimerInitialValue;
setInterval(setTimer, 1000);
setInterval(setTimer, 1000); //This function exists because if the site detects an adblocker, it switches the timer to 30, and that only happens in the last second or so
/* ------------ Protect buttons from being removed ------------ */
// Protect all buttons currently in the DOM