From 51646cc5f9388140d1eedcd44b31b3e86a49f1b1 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 30 Oct 2023 14:16:48 +0900 Subject: [PATCH] create project --- .gitignore | 1 + Makefile | 7 +++++++ README.md | 7 +++++++ src/content.js | 3 +++ src/manifest.json | 11 +++++++++++ 5 files changed, 29 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README.md create mode 100644 src/content.js create mode 100644 src/manifest.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1521c8b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dist diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0d848f0 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY: build +build: dist/web-ext.zip + +dist/web-ext.zip: + mkdir -p "$(dir $@)" + cd src \ + ; zip -r "$(abspath $@)" . diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f2f0ae --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Piped Redirection + +YouTube から piped.video にリダイレクトする拡張機能 + +## License + +MIT diff --git a/src/content.js b/src/content.js new file mode 100644 index 0000000..6f1c35d --- /dev/null +++ b/src/content.js @@ -0,0 +1,3 @@ +"use strict"; + +location.hostname = "piped.video"; diff --git a/src/manifest.json b/src/manifest.json new file mode 100644 index 0000000..ec66e13 --- /dev/null +++ b/src/manifest.json @@ -0,0 +1,11 @@ +{ + "manifest_version": 3, + "name": "Piped Redirection", + "version": "0.0.0", + "content_scripts": [ + { + "matches": ["https://www.youtube.com/*"], + "js": ["content.js"] + } + ] +}