callumlocke / json-formatter

Makes JSON easy to read.
https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en
BSD 3-Clause "New" or "Revised" License
3.76k stars 859 forks source link

div#formattedJson id and classes changed #222

Closed jsonengler closed 1 year ago

jsonengler commented 1 year ago

i noticed that a lot of my tampermonkey scripts broke today. i'm looking into it, and i realize you changed some of the id/class names which my script is specifically using. by any chance do you have a list of these changes i can look at?

for example, this is the json in question:

{"error":"not_found","reason":"missing"}

i'm using this jquery selector:

$("div#formattedJson > span.kvov.arrElem.rootKvov > span.blockInner")

after the update to 0.7.0, this doesn't find what i'm looking for, so i have to replace it with this:

$("div#jsonFormatterParsed > span.entry.arrElem > span.blockInner")

callumlocke commented 1 year ago

Sorry about this. And it's probably going to happen again soon as I'm refactoring it.

If you just want your old tampermonkey stuff to keep working without any changes, one option is you could just check out the previous version (think it's v0.6.2 and install that from source. Obviously you then won't get future updates though.

As for your specific problem, I am not completely sure but you should be able to figure out what selector you need from the devtools. It's probably just one of the class names changed.