This extension helps you inspect one aspect of your JavaScript code quality, the number of global variables. Click the Browser…
Global Variable Detector Extension Extension
This extension helps you inspect one aspect of your JavaScript code quality, the number of global variables.
Click the Browser Action button, the blue icon with the \"Gl\" on it, in order to collect a list of global variables on the current web page. In the Console, each variable is listed, and an object is logged which contains the variables in an array.
Read more
Click the Browser Action button, the blue icon with the \"Gl\" on it, in order to collect a list of global variables on the current web page. In the Console, each variable is listed, and an object is logged which contains the variables in an array.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "Global Variable Detector Extension", "version": "0.1", "background": { "persistent": false, "scripts": [ "background.js" ] }, "content_scripts": [\t {\t "matches": [ "https://*/*", "http://*/*"\t ],\t "js": ["web.js", "js/GlobalDetector.js"]\t } ], "web_accessible_resources": [ "web.js" ], "permissions": ["activeTab"], "browser_action": { "default_icon": { "16": "images/favicon-16x16.png", "24": "images/favicon-32x32.png", "32": "images/favicon-32x32.png" }, "default_title": "Global Variable Detector - Click to see globals in JS console." }}
Read more