I wish to create a browser fingerprint for every user on my website. I do this by iterating trough winow.screen window.navigator object properties. I copy them to an object.
The problem is at window.navigator.plugins when I use JSON.stringify I don't get the filename of plugins installed. The property is there but somehow is not serialized using JSON.stringify.
The object is like this window.navigator.plugins[0].filename
How can I get all object content using stringify ?!
This will turn it into an array and extract only the filename from there, which can then be stringified properly:
[].slice.call(navigator.plugins).map(function(plugin){return plugin.filename})
JSON.stringify([].slice.call(navigator.plugins).map(function(plugin){return plugin.filename}))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With