Move manifest.json

This commit is contained in:
TheBrokenRail 2022-03-19 20:36:18 -04:00
parent 8d89763857
commit 71c2aff1cf
2 changed files with 4 additions and 3 deletions

View File

@ -6,12 +6,12 @@
"content_scripts": [ "content_scripts": [
{ {
"matches": ["*://disneynow.com/*"], "matches": ["*://disneynow.com/*"],
"js": ["content.js"], "js": ["src/content.js"],
"run_at": "document_start" "run_at": "document_start"
} }
], ],
"web_accessible_resources": [ "web_accessible_resources": [
"page.js" "src/page.js"
], ],
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {

View File

@ -1,5 +1,6 @@
const script = document.createElement('SCRIPT'); const script = document.createElement('SCRIPT');
script.src = chrome.runtime.getURL('page.js'); script.src = chrome.runtime.getURL('src/page.js');
script.type = 'text/javascript';
script.onload = function() { script.onload = function() {
this.remove(); this.remove();
}; };