Standard template for creating Chrome extension
Standard template for creating Chrome extension
chrome://extensions
Developer mode
Extensions
iconchrome://extensions/
, click on ↩️ beside on/off toggle to refresh codebackground page
Inspect popup
to check the messages from browser action popupbrowser_action
is triggered by clicking the extension icon
Add "content_security_policy": "script-src 'self' 'unsafe-eval' https://cdnjs.cloudflare.com; object-src 'self'"
,`
Both 'unsafe-eval'
and https://cdnjs.cloudflare.com
are crucial
There should not be any inline js script in the html file, extract code into an external script such as browser-action.js