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"] + } + ] +}