Detects if you are accessing localhost or production and respectively shows prominent red banner only on localhost.

Latest Version

Version
0.3
Update
April 25, 2019
Size
37.79KiB
Developer
Category
Users
266
Rating
4 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
See more

Localhost detector Extension

It checks the following in the URL and adds the red banner:
1. \"localhost\"
2. \"127.0.0.1\"
3. \"local.\"
4. \".local\"
5. \"staging.\"
6. \".stg\"
7. \"dev.\"
8. \"test.\"
9. \".test\"


Let me know, if you want to add any other string that should match and show the red banner.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "Localhost detector", "description": "Detects if you are accessing localhost or production and respectively shows prominent red banner only on localhost.", "version": "0.3", "icons": { "128": "icon.png" }, "content_scripts": [ { "js": ["jquery.min.js", "local.js"], "css": ["local.css"], "matches": [ "*://*/*" ], "run_at": "document_end" } ]}
Read more