This extension detects if a website registers a Service Worker.
Service Worker Detector Extension
👷 This extension detects if a website registers a Service Worker [1] by reading the navigator.serviceWorker.controller property [2]. It also parses the Web App Manifest and displays the information in an accessible way. Find the source code of the extension on GitHub [3].
🤔 Why would you want this? If you aren’t into Web development, most probably you wouldn’t. However, if you are into Web development, the extension helps you identify (unexpected) Service Worker registrations in the wild and lets you analyze their code and learn from them.
💡 Why would you use this extension and not just the amazing Chrome Developer Tools? The answer is that the extension proactively detects Service Workers before you even have to open the Developer Tools (which you probably eventually will end up doing anyway).
--
[1] https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker
[2] https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/controller
[3] https://github.com/google/service-worker-detector
Read more
🤔 Why would you want this? If you aren’t into Web development, most probably you wouldn’t. However, if you are into Web development, the extension helps you identify (unexpected) Service Worker registrations in the wild and lets you analyze their code and learn from them.
💡 Why would you use this extension and not just the amazing Chrome Developer Tools? The answer is that the extension proactively detects Service Workers before you even have to open the Developer Tools (which you probably eventually will end up doing anyway).
--
[1] https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker
[2] https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/controller
[3] https://github.com/google/service-worker-detector
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "Service Worker Detector", "short_name": "SW Detector", "description": "This extension detects if a website registers a Service Worker.", "author": "Thomas Steiner ([email protected], @tomayac)", "version": "2.4.1", "icons": { "16": "assets/icon-female-16.png", "48": "assets/icon-female.png", "128": "assets/icon-female-128.png", "160": "assets/icon-female.png", "512": "assets/icon-female-512.png", "1024": "assets/icon-female-1024.png" }, "page_action": { "default_icon": { "19": "assets/icon.png", "38": "assets/icon.png", "40": "assets/icon.png", "160": "assets/icon.png" }, "default_popup": "popup.html", "default_title": "\u274c\ud83d\udc77\u200d No active Service Worker found." }, "permissions": ["activeTab"], "content_scripts": [ { "matches": [""], "js": ["contentscript.js"], "run_at": "document_idle", "all_frames": false } ], "background": { "scripts": ["background.js"], "persistent": false }, "minimum_chrome_version": "40"}
Read more