Brings back the json global variable for JSON Formatter, https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa
// ==UserScript== // @name json global variable for JSON Formatter // @namespace [email protected] // @version 0.1 // @description Brings back the json global variable for JSON Formatter, https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa // @author Martin Larsen // @match http*://*/*.json // @license GNU GPLv3 // ==/UserScript== /* globals json */ json = JSON.parse(document.getElementById("jsonFormatterRaw").querySelector("pre").innerText); console.log("Type json in the console to inspect and manipulate the JSON object");