News for hackers. Stuff that matters.
Re:Show HN: JSON Pizza – Beautify your JSON quickly by efdee on Thursday August 08, 2019 @02:00PM (#20646901)
I always quickly check my Chrome Inspector to make sure it's not sending anything to a server.
Re:Show HN: JSON Pizza – Beautify your JSON quickly by jdavis703 on Thursday August 08, 2019 @02:08PM (#20646980)
Don't count on this. There are ways to guess if the dev tools are likely to be open and then alter nefarious behavior based on that.

For example you can detect changes in window sizes or look for plugins that are in the global namespace (e.g. Redux Dev Tools). Better play it safe and don't copy and paste private data to random sites.

Another attack vector would be to avoid sending down any data unless it contains something that looks like a hash or a token, or has a keyword like "password."

Re:Show HN: JSON Pizza – Beautify your JSON quickly by tlrobinson on Thursday August 08, 2019 @04:59PM (#20648689)
There are also ways to wait until you close or navigate away from the page, using window.onbeforeunload / window.onunload / navigator.sendBeacon: https://stackoverflow.com/questions/4945932/window-onbeforeu...