jhen0409 / react-chrome-extension-boilerplate

Boilerplate for Chrome Extension React.js project
MIT License
2.14k stars 388 forks source link

How to use inject.html #90

Open esrefozguraltuntas opened 6 years ago

esrefozguraltuntas commented 6 years ago

I could not open inject.html, every time popup.html is opening when I open https://github.com. What should I change on manifest.dev.json to open inject.html

Regard

esrefozguraltuntas commented 6 years ago

I used this manifest.dev.json as is

{ "version": "0.0.0", "name": "react-chrome-extension-example", "manifest_version": 2, "description": "Example for react-chrome-extension-boilerplate", "browser_action": { "default_title": "React Chrome Extension Example", "default_popup": "popup.html" }, "icons": { "16": "img/icon-16.png", "48": "img/icon-48.png", "128": "img/icon-128.png" }, "web_accessible_resources": [ "inject.html" ], "background": { "page": "background.html" }, "permissions": [ "contextMenus", "management", "tabs", "storage", "https://github.com/" ], "content_security_policy": "default-src 'self'; script-src 'self' http://localhost:3000 https://localhost:3000 'unsafe-eval'; connect-src http://localhost:3000 https://localhost:3000; style-src 'unsafe-inline' 'self' blob:; img-src 'self' data:; font-src 'self' data:;" }

esrefozguraltuntas commented 6 years ago

I ve got it, just see button on https://github.com/*