If I go on a website, can I read the source code of the JavaScript files?
Even if the code is obfuscated? I precise, not for compression reason, but obfuscated in order to transform the code less readable.
Next, can I modify on the fly the code with my browser (like Chrome for example)? Is this also legal to create a patch for a website? With GreaseMonkey for example?
Now, in this virtual situation,
- Take a random free game.
- This is an online game (with websocket technology for example).
- And this game is totally free but contains adverts. So we can deduce author of the game intends to make money with their creation.
- Their code are obfuscated, not with a minifier easily indentable (which is more a compressor than a real obfuscator), but with a "real" obfuscator that transform the original code in something less readable for humain.
- The authors of the website explicitely said that they do not want that other people read and modify 'on the fly' their code.
So in this precise situation:
- Do I have the right to modify on the fly (and also create a patch) in order to correct a bug?
- Do I have the right to explain to others people how this code works?
- Do I have the right to modify on the fly the code in order to cheat in this game and explain to other for educational purpose (and free)?
An example for the last point: I modify part of the code that said "my life is 50/100" and I send another message to the server: "my life is 100/100". By using their function to send data about our own life points.
Original code (deobscated) of the developper of this random game:
var send_my_life = function (my_life) { socket.emit (my_life); }
Transformed function (on the fly or in the patch):
var send_my_life = function (my_life) { socket.emit (100); }
I create this example in order to determinate if their exists any borders to the law. I mean, behind this border I can probably do my modifications (for example the game is not online). And accross this borders (for example player can make money with this game) = I probably should not modify the game.