Skip to content

Commit

Permalink
manifest split for Chrome/Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaschny committed Sep 1, 2018
1 parent 7f033d1 commit 52dd39e
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

## Download
[Chrome Web Store](https://chrome.google.com/webstore/detail/unwanted-twitch/egbpddkgpjmliolmpjenjomflclekjld)
[Firefox Add-ons](https://addons.mozilla.org/de/firefox/addon/unwanted-twitch/)

## Features
- hide unwanted games
- hide unwanted channels
- hide unwanted communities
- hide unwanted creative communities
- blacklist is automatically synced between devices (requires Google account to be linked with Chrome)
- supports one-click-toggle to disable/enable extension
- blacklist automatically synced between devices
- one-click-toggle to disable/enable extension
- compatible with BetterTTV (BTTV) and FrankerFaceZ (FFZ)

## Notice
Expand Down
4 changes: 2 additions & 2 deletions manifest.json → manifest.chrome.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "Unwanted Twitch",
"short_name": "Unwanted TTV",
"version": "18.8.30",
"version": "18.9.1",
"description": "__MSG_app_Desc__",
"permissions": [ "https://www.twitch.tv/", "storage" ],
"permissions": [ "https://www.twitch.tv/", "tabs", "storage" ],
"default_locale": "en",
"background": {
"scripts": [ "scripts/background.js" ],
Expand Down
34 changes: 34 additions & 0 deletions manifest.firefox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Unwanted Twitch",
"short_name": "Unwanted TTV",
"version": "18.9.1",
"description": "__MSG_app_Desc__",
"permissions": [ "https://www.twitch.tv/", "tabs", "storage" ],
"default_locale": "en",
"background": {
"scripts": [ "scripts/background.js" ]
},
"content_scripts": [
{
"matches": [ "https://www.twitch.tv/*" ],
"js": [ "scripts/directory.js" ],
"css": [ "styles/directory.css" ]
}
],
"page_action": {
"default_icon": "images/icon32.png",
"default_popup": "views/popup.html"
},
"icons": {
"16": "images/icon16.png",
"32": "images/icon32.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
},
"manifest_version": 2,
"applications": {
"gecko": {
"id": "unwanted@twitch.tv"
}
}
}
22 changes: 22 additions & 0 deletions pack_chrome.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@echo off

set zip="C:\Program Files\7-Zip\7z.exe"
set dir=%~dp0
set target="%dir%publish\chrome\current.zip"

del "%dir%\manifest.json"
type "%dir%\manifest.chrome.json" > "%dir%\manifest.json"

del %target%
%zip% a -mx=9 -r %target% "%dir%*"^
-x!".git*"^
-x!"manifest.chrome.json"^
-x!"manifest.firefox.json"^
-x!"publish\"^
-x!"raw\"^
-x!"tests\"^
-x!"webstore\"^
-x!"*.md"^
-x!"*.bat"

del "%dir%\manifest.json"
22 changes: 22 additions & 0 deletions pack_firefox.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@echo off

set zip="C:\Program Files\7-Zip\7z.exe"
set dir=%~dp0
set target="%dir%publish\firefox\current.zip"

del "%dir%\manifest.json"
type "%dir%\manifest.firefox.json" > "%dir%\manifest.json"

del %target%
%zip% a -mx=9 -r %target% "%dir%*"^
-x!".git*"^
-x!"manifest.chrome.json"^
-x!"manifest.firefox.json"^
-x!"publish\"^
-x!"raw\"^
-x!"tests\"^
-x!"webstore\"^
-x!"*.md"^
-x!"*.bat"

del "%dir%\manifest.json"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added publish/chrome/18.9.1.zip
Binary file not shown.
Binary file added publish/firefox/18.9.1.zip
Binary file not shown.

0 comments on commit 52dd39e

Please sign in to comment.