Poll json and display result in toolbar.
json poll Extension
grab every second the json url you specified in options and read 2 fields in it:
- \"param\": if param is equal to \"ok\", \"ok\" is displayed on the app icon (green background)
- \"t\": if param is not \"ok\", t value is displayed on the app icon (yellow background)
examples of json:
{\"param\":\"ok\"}
{\"param\":\"error\", \"t\":\"fail\"}
Read more
- \"param\": if param is equal to \"ok\", \"ok\" is displayed on the app icon (green background)
- \"t\": if param is not \"ok\", t value is displayed on the app icon (yellow background)
examples of json:
{\"param\":\"ok\"}
{\"param\":\"error\", \"t\":\"fail\"}
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "json poll", "version": "1.0", "description": "poll json and display result in toolbar.", "icons": { "64": "cloud-reload-21-64x64.png", "128": "cloud-reload-21-128x128.png", "256": "cloud-reload-21-256x256.png",\t "512": "cloud-reload-21.png" }, "permissions": [\t "background", "storage" ], "browser_action": {\t"name": "click me", "default_icon": "cloud-reload-21-64x64.png" }, "options_page": "options.html", "background": { "scripts": ["jquery-2.1.1.min.js", "background.js"] }}
Read more