-
Notifications
You must be signed in to change notification settings - Fork 470
Ability to modify JS objects #61
Comments
Sorry, i wasn't clear. |
You have a test case I can use to reproduce? A URL? |
This used to work. I fixed a problem with the messaging code, but it still broken. I can't make sense why, as using tracing code I can see that the spoofed navigator is correctly inserted, but for I don't know what reason, the old one is not being replaced. I will investigate more tomorrow. |
Chromium issue: Window.navigator is immutable, did not used to be I would like to understand the explanation (or "explanation") behind this change... I invite the users to star this Chromium issue (there is a star to the left of the issue number), not sure it will do something, but if only to show people care about features which enhance privacy. I really need to have a Firefox version of uMatrix, this is what happens when we depend on one single browser. |
So currently, UA spoofing is rendered rather useless, unless one disable javascript by default, which is not a very realistic workaround. Edit: Actually, blacklisting globally |
You mean navigator.userAgent cannot be spoofed? Damn, and I just On 11/20/14, Raymond Hill notifications@github.com wrote:
|
Not anymore. It definitely used to work, but this was changed for I don't know why. Your other add-on will also not be able to overwrite |
Actually, Chameleon extension do accomplish this. https://github.com/ghostwords/chameleon
|
@eduardoeae You're right, it works. Looking at the code, I see it defines getters for each property, while on my side I try to replace wholesome the So it's as if the |
Just adding one line to define a getter fixes the issue. I will stick with that, importing directly from Chameleon looks like would be way too much work. When I wrote that code a long time ago I had never looked into getters. I started to use a getter() with uDom and found this pretty cool. Using getters for UA-spoofing is definitely the better approach, that will simplify the code I had written a long time ago. I never stop learning. |
Is it possible to spoof JS objects with uMatrix?
The text was updated successfully, but these errors were encountered: