dwyl / learn-chrome-extensions

:globe_with_meridians: Discover how to build and deploy a Google Chrome Extension for your Project!
145 stars 25 forks source link

JSON Formatter Chrome Extension #8

Open nelsonic opened 8 years ago

nelsonic commented 8 years ago

Can we build a simple chrome extension that detects when the page contains JSON and formats it accordingly? https://github.com/callumlocke/json-formatter prefer the formatter used on here: https://jsonformatter.curiousconcept.com/

ryanpcmcquen commented 8 years ago

Are we looking for only JSON? Or JSON contained in a page?

nelsonic commented 8 years ago

@ryanpcmcquen good question! I think as a start we can go for content-type or MIME of application/javascript to avoid parsing every page people visit (and slowing down the browsing experience) ... but we could optionally have a method to find JSON on the page...