litejs / json-lite

Fast non-blocking JSON viewer for Chrome and Firefox
195 stars 16 forks source link

Add a toggle button #33

Closed eternalstarfire closed 5 years ago

eternalstarfire commented 6 years ago

A toggle button would be a nice feature so that the pretty JSON formatting can be quickly toggled on or off without needing to go to the Add-on settings and disable it globally.

lauriro commented 6 years ago

Although this is not a solution, currently you can disable auto-format in options and format only desired responses by clicking JSON Lite icon.

Will think about it how to make it more friendly. First thought is to make JSON Lite icon to toggle between formatet and plain output and remember last decision.

eternalstarfire commented 6 years ago

... currently you can disable auto-format in options and format only desired responses by clicking JSON Lite icon.

This workaround sounds good... but I am using Firefox 58.0.2 640bit on Win7 and I cannot see any JSON Lite icon :disappointed: I have other addons with icons, but JSON Lite (18.2.0) icon is missing despite the adding being enabled and working well. It is not one of the available icons in the 'Customise...' menu either. Any tips? Can you reproduce this on Firefox?

lauriro commented 6 years ago

A pageAction should appear when you set JSON Lite option Auto-format documents off and visit a page with json content.

shravan2x commented 6 years ago

This would be a useful feature to have, any progress?