実は漸くエラーを改善して制作した自作拡張機能に拡張機能のアイコンをクリックしたら、通知オンがなるかを設定できるメニューが表示されるような機能を搭載したいのですが、全然サイトを見ても分からなくて困っています。
どなたかこのソースコードに合うようなプログラムを教えて頂けませんか?
manifest
1{ 2 "manifest_version": 2, 3 "author": "(ねず~)", 4 "homepage_url": "https://scratch.mit.edu/messages/", 5 "name": "Scratch_message alert", 6 "description": "Scratch alert", 7 "version": "0.1", 8 9 "permissions": [ 10 "tabs", 11 "background", 12 "http://*/*", 13 "https://*/*" 14 ], 15 16 "background": { 17 "scripts": ["background.js"], 18 "persistent": false 19 }, 20 21 "browser_action": { 22 "default_icon": "icon.png", 23 "default_title": "Scratch alert" 24 }, 25 26 "content_scripts": [{ 27 "matches": ["https://scratch.mit.edu/messages/"], 28 "js": ["script.js"] 29 }] 30 31}
ちなみに、script.jsとbackground.jsには何も記載していません。
versionは最新版です。
一応メモ帳で書いています。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/10/31 09:38