I need a way to compare all the object information that is available in javascript. I tried copying window.navigator or just window with copy(window); in the chrome console. But for some reason when I want to copy the object or convert it to json I always get an error. I've been looking it up but I couldn't really find a way. What I need is a function that can give me a list of all javascript variables that are globally available just like this site doesbrowserspy.dk/showprop.php. This site lists all global variables and functions, I want the same but preferably in a JSON format or any other raw text format that allows me to easily compare it and find the differences. I want to find out more information about how a browser could be tracked ect. I know about canvas fingerprinting and about those javascript variables.
What I hava already tried is JSON.stringify(window);
but this gives me an
Uncaught TypeError: Converting circular structure to JSON
at JSON.stringify (<anonymous>)
at <anonymous>:1:6
I have tried looking this error up and came across Chrome sendrequest error: TypeError: Converting circular structure to JSON but I still got other errors when I tried the solutions. I don't mind if the object misses some data as long as I am able to compare all the variables that are different. I have tried many ways I found online already and the problems I keep getting are: It throws an error, or all the objects in the object are ignored. I also need all the info of for example window.navigator or window.navigator.webkitGetUserMedia and its sub-values like window.navigator.webkitGetUserMedia.length . How can this be accomplished?