I do not know if that is possible but I want to change/set a value loaded by a webbrowser.
In this script tag the variables are set:
<script>
Current.set('username','tomi');
Current.set('user_id','1234');
</script>
I tried such a thing and obviously and as expected the following code line does not work :
unsafeWindow.Current.set('username', 'myname');
unsafeWindow.Current.set('user_id', '1111');
How can I manipulate such a code?
There may be a simpler way, depending on the actual target page (link to it) and what you are trying to do. But, you can always use the checkForBadJavascripts utility. Just set your script to run at document-start.
See this answer and this answer.
In this case, you would call
checkForBadJavascripts()like so: