I want to learn how to make a script in Greasemonkey to modify variables in a page or bypass a delaying function.
Here is the script found in the middle of the page:
<script language="Javascript">
x300=100;
function countdown() {
x300--;
if (x300 == 0) {
document.getElementById('countdown').innerHTML =
'<strong>Proceed to URL - <a href="http://XXXX.com/11123324">click here</a>!</strong>';
}
if (x300 > 0) {
document.getElementById('countdown').innerHTML =
'You will be redirected in ' + x300 + ' seconds.';
setTimeout('countdown()',100000);
}
}
countdown();
</script>
Of course I want to do a script that will redirect me to http://XXXX.com/11123324
,
I am still noob so the best script I made was:
// ==UserScript==
// @name aaa
// @include bbbb
// @grant none
// ==/UserScript==
x300=1;
countdown()
but it didn't work :(