The developer console in most modern browsers can be quite powerful for modifying websites live. This includes modifying HTML, CSS and even Javascript.
To do this, one can:
- Right-Click the iframe and select
Inspect
. ORCTRL
+Shift
+i
(in Chrome). - Select
Console
tab. - Click the downward arrow to select the JavaScript console for the iframes windows.
- All JavaScript variables are now accessible from the javascript console. You can tweak these values to modify all things about the Windows from variables to the iframe windows current URL/URL parameters (
window.location.href
).
See image:
This is only a made up example and wont work in any real-game. But for example, if I have a myplayer
object with an attribute called throwDelay
, I could tweak that by doing myplayer.throwDelay = 0
Here is an example of accessing such an example variable from the JS console:
You can also access the windows URL in the javascript console using window.location.href
. You can also set or modify it via that variable.