diff --git a/audio/bgm.wav b/audio/bgm.wav new file mode 100644 index 0000000..a142314 Binary files /dev/null and b/audio/bgm.wav differ diff --git a/manifest-chome.json b/manifest-chome.json new file mode 100644 index 0000000..1d7d743 --- /dev/null +++ b/manifest-chome.json @@ -0,0 +1,50 @@ +{ + "manifest_version": 3, + "name": "WiiShop but on browsers (Chrome)", + "version": "1.0", + "permissions": [ + "scripting", + "activeTab", + "storage", + "webRequest", + "tabs" + ], + "host_permissions": [ + "" + ], + "action": { + "default_popup": "popup.html" + }, + "background": { + "service_worker": "background.js" + }, + "content_scripts": [ + { + "matches": [ + "https://oss-auth.blinklab.com/*", + "https://oss-auth.thecheese.io/*", + "https://oss-auth.shop.wii.com/*", + "http://wiimart:8080/oss/serv/*", + "https://wiimart:8080/oss/serv/*" + ], + "js": ["content.js"], + "run_at": "document_start" + } + ], + "web_accessible_resources": [ + { + "resources": [ + "images/*", + "audio/*", + "classDefinitions.js" + ], + "matches": [ + "https://oss-auth.blinklab.com/*", + "https://oss-auth.thecheese.io/*", + "https://oss-auth.shop.wii.com/*", + "http://wiimart:8080/oss/serv/*", + "https://wiimart:8080/oss/serv/*" + ] + } + ] +} \ No newline at end of file diff --git a/manifest.json b/manifest.json index 63530b6..8c702da 100644 --- a/manifest.json +++ b/manifest.json @@ -1,28 +1,27 @@ { "manifest_version": 3, - "name": "WiiShop but on browsers", + "name": "WiiShop but on browsers (Firefox)", "version": "1.0", "permissions": [ - "scripting", - "activeTab", - "storage", + "scripting", + "activeTab", + "storage", "webRequest", - "webRequestBlocking", "tabs" ], + "host_permissions": [ + "" + ], "action": { "default_popup": "popup.html" }, - "host_permissions": [ - "" - ], "background": { "scripts": ["background.js"] }, "content_scripts": [ { "matches": [ - "https://oss-auth.blinklab.com/*", + "https://oss-auth.blinklab.com/*", "https://oss-auth.thecheese.io/*", "https://oss-auth.shop.wii.com/*", "http://wiimart:8080/oss/serv/*", @@ -35,14 +34,13 @@ "web_accessible_resources": [ { "resources": [ - "fonts/*", "images/*", "audio/*", "classDefinitions.js" ], "matches": [ "https://oss-auth.blinklab.com/*", - "https://oss-auth.thecheese.io/*", + "https://oss-auth.thecheese.io/*", "https://oss-auth.shop.wii.com/*", "http://wiimart:8080/oss/serv/*", "https://wiimart:8080/oss/serv/*"