diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..13cbc57 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.xpi +*.zip diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e9ddd74 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +NAME := yandex-music-upgrade +VERSION := $(shell python3 -c "import json; print(json.load(open('manifest.json'))['version'])") +XPI := $(NAME)-$(VERSION).xpi + +SOURCES := manifest.json background.js content.js +ICONS := $(wildcard *.png) + +.PHONY: all clean + +all: $(XPI) + +$(XPI): $(SOURCES) $(ICONS) + zip -r $@ $(SOURCES) $(ICONS) + @echo "Готово: $@" + +clean: + rm -f $(NAME)-*.xpi diff --git a/manifest.json b/manifest.json index 05d5cf1..9e6f3df 100644 --- a/manifest.json +++ b/manifest.json @@ -1,8 +1,17 @@ { "manifest_version": 2, - "name": "Yandex Music Custom Animation", + "name": "Yandex Music Upgrade", "version": "1.0.0", - "description": "Replaces Yandex Music animation with a custom video", + "description": "Replaces boring Yandex Music animation", + "browser_specific_settings": { + "gecko": { + "id": "yandex-music-upgrade@nikita.ym", + "strict_min_version": "91.0", + "data_collection_permissions": { + "required": ["none"] + } + } + }, "permissions": [ "activeTab", "webRequest", @@ -19,9 +28,5 @@ "js": ["content.js"], "run_at": "document_idle" } - ], - "icons": { - "48": "icon.png", - "96": "icon.png" - } + ] }