Forked from dsetzer/gist:5e8d71df75eff19de0ab1d2eed1767a3
Created
August 18, 2019 04:10
-
-
Save BitChop/0976ac162e23a71abaae6024118a1d9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var checkInterval = 10; | |
Window.prototype.targetLimiter = function (checkInterval) { | |
setImmediate(() => { | |
window.setInterval(() => { | |
if (window.document.getElementsByName('target')[0].value < 1.5) { | |
window.document.getElementsByName('target')[0].value = 1.5; | |
} | |
}, checkInterval); | |
}); | |
} | |
window.targetLimiter(checkInterval); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment