This extension helps you inspect one aspect of your JavaScript code quality, the number of global variables. Click the Browser…

Latest Version

Version
0.1
Update
June 14, 2020
Size
7.6KiB
Developer
Category
Users
111
Rating
5 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
See more

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

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