ayman / PrettyJSON

Safari JS Extension for toggling JSON pretty print.
GNU General Public License v3.0
27 stars 7 forks source link

CSS also affects other web sites #7

Open vandelay opened 3 years ago

vandelay commented 3 years ago

First, thanks for this extension.

We use a commercial web site which also uses CSS class number and they were appearing in darkorange on my machine as the CSS in this extension overrides the styling on the site.

grahamb commented 2 years ago

Also seeing this when using semantic-ui; I have an icon with class .key.

Your CSS should be namespaced to prevent collisions like this, and ideally (don't know if this is possible with Safari's extension APIs) only active when viewing actual JSON.

Screen Shot 2021-12-15 at 11 47 07