4 ms·
They seem to set something on `window.navigator._duckduckgoloader_` If you run `JSON.stringify(window.navigator)`, it only shows the _duckduckgoloader_ variabl
by AdriaanvRossum 4y ago
They seem to set something on `window.navigator._duckduckgoloader_`
If you run `JSON.stringify(window.navigator)`, it only shows the _duckduckgoloader_ variable. Anybody knows why JSON.stringify behaves like that?
- wifu 4y agoJSON.stringify is outputting the "own, enumerable" properties. The default properties of window.navigator aren't enumerable and/or come through the prototype chain. The rules for JSON.stringify are actually pretty complicated: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- AdriaanvRossum 4y agoThanks for sharing!