From 07e6b1f7ff1b93b034d9cc691b1272e3ae6d52b5 Mon Sep 17 00:00:00 2001 From: Lawrence Hook Date: Thu, 9 May 2024 00:51:55 -0400 Subject: [PATCH] update --- .gitignore | 1 + make_chrome.sh | 4 ++ make_firefox.sh | 6 +++ src/{manifest.json => chrome_manifest.json} | 0 src/firefox_manifest.json | 58 +++++++++++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 make_firefox.sh rename src/{manifest.json => chrome_manifest.json} (100%) create mode 100644 src/firefox_manifest.json diff --git a/.gitignore b/.gitignore index f79ef25..3284637 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ keys/ web-ext-artifacts/ extension.zip +manifest.json diff --git a/make_chrome.sh b/make_chrome.sh index 23465a2..93dbe36 100755 --- a/make_chrome.sh +++ b/make_chrome.sh @@ -1,5 +1,9 @@ #!/bin/bash +cd src +cp chrome_manifest.json manifest.json +cd .. + cp -r src chrome_extension rm -rf chrome_extension/web-ext-artifacts/ rm extension.zip diff --git a/make_firefox.sh b/make_firefox.sh new file mode 100644 index 0000000..584b795 --- /dev/null +++ b/make_firefox.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +cd src +cp firefox_manifest.json manifest.json +web-ext build +cd .. diff --git a/src/manifest.json b/src/chrome_manifest.json similarity index 100% rename from src/manifest.json rename to src/chrome_manifest.json diff --git a/src/firefox_manifest.json b/src/firefox_manifest.json new file mode 100644 index 0000000..49abe5f --- /dev/null +++ b/src/firefox_manifest.json @@ -0,0 +1,58 @@ +{ + "name": "RYS — Remove YouTube Suggestions", + "description": "Spend less time on YouTube. Customize YouTube's user interface to be less engaging.", + "homepage_url": "https://github.com/lawrencehook/remove-youtube-suggestions", + "manifest_version": 3, + "version": "4.3.56", + + "icons": { + "16": "/images/16.png", + "32": "/images/32.png", + "64": "/images/64.png", + "128": "/images/128.png" + }, + + "background": { + "scripts": [ + "/background/events.js" + ], + "persistent": false + }, + + "content_scripts": [ + { + "js": [ + "/shared/main.js", + "/shared/https.js", + "/shared/utils.js", + "/content-script/main.js" + ], + "css": ["/content-script/main.css"], + "all_frames": true, + "matches": ["*://*.youtube.com/*"], + "run_at": "document_start" + } + ], + + "action": { + "default_popup": "/options/main.html", + "default_title": "Remove Youtube Suggestions", + "default_icon": { + "16": "/images/16.png", + "32": "/images/32.png", + "64": "/images/64.png", + "128": "/images/128.png" + } + }, + + "options_ui": { + "page": "/options/main.html", + "open_in_tab": true + }, + "permissions": [ + "storage" + ], + "host_permissions": [ + "*://*.youtube.com/*" + ] +}