I am facing an issue with a webpage that contains a .js script. The page includes the following code:
<script>
Client.includeJS(
'js/scratchticket.js'
);
</script>
The scratchticket.js file contains the following code:
$(document).ready(function() {
...
var xxx = 100;
...
});
I have tried various methods in Greasemonkey to change the value of the variable "xxx" to 200 but have been unsuccessful. I even attempted to block the scratchticket.js file with adblock and copy the entire code into a Greasemonkey script to edit the variable, but the changes are not taking effect. The page keeps showing 'loading...' when it should execute the code.
Does anyone have any ideas on how to successfully alter the variable in another way?