Detects if you are accessing localhost or production and respectively shows prominent red banner only on localhost.
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
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.
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