News for hackers. Stuff that matters.
Re:DuckDuckGo for Mac beta now open to the public by AdriaanvRossum on Tuesday October 18, 2022 @01:24PM (#33250896)
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?

Re:DuckDuckGo for Mac beta now open to the public by wifu on Tuesday October 18, 2022 @02:59PM (#33252229)
JSON.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/Refe...

Re:DuckDuckGo for Mac beta now open to the public by AdriaanvRossum on Wednesday October 19, 2022 @04:55AM (#33259382)
Thanks for sharing!