diff --git a/README.md b/README.md index 015cd2b..0f8d769 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,27 @@ # Persistent Video/Audio Volume -[![Google Chrome Webstore](https://developer.chrome.com/webstore/images/ChromeWebStore_Badge_v2_206x58.png)](https://chrome.google.com/webstore/detail/persistent-video-volume/ppoliijncpdcgddmfibmgnjhegceaadj)[![Firefox Addons](https://addons.cdn.mozilla.net/static/img/addons-buttons/AMO-button_1.png)](https://addons.mozilla.org/de/firefox/addon/persistent-video-audio-volume/?src=external-github) + + + + + + + + + + +## Features + +- :heavy_check_mark: Saves volume settings for each website and applies saved volume on every visit +- :heavy_check_mark: Or limit volume to a set maximum +- :heavy_check_mark: Privacy - Does not track any activity ## Use cases -- Facebook.com -- 9gag.com -- Bandcamp.com -- ... and many more +- :heavy_check_mark: Facebook.com +- :heavy_check_mark: 9gag.com +- :heavy_check_mark: Bandcamp.com +- :heavy_check_mark: ... and many more # Credits @@ -18,33 +32,17 @@ ## Dependencies -### [Material Components Web 4.0.0](https://github.com/material-components/material-components-web/archive/v4.0.0.zip) +### [Material Components Web 7.0.0](https://github.com/material-components/material-components-web/archive/v7.0.0.zip) ``` -$ wget "https://github.com/material-components/material-components-web/archive/v4.0.0.zip" -$ unzip v4.0.0.zip -$ cd material-components-web-4.0.0/ -$ npm install -$ npm run build +# ./docker-build-dep.sh MATERIAL_COMPONENTS_WEB_VERSION +./docker-build-dep.sh 7.0.0 ``` -## Zip Extension +## Package Extension ``` -zip package.zip \ - manifest.json \ - pvv.png \ - popup.js \ - popup.html \ - README.md \ - LICENSE \ - icon*.png \ - contentscript.js \ - material-components-web-4.0.0/build/material-components-web.css \ - material-components-web-4.0.0/build/mdc.ripple.css \ - material-components-web-4.0.0/build/mdc.autoInit.js \ - material-components-web-4.0.0/build/material-components-web.js \ - material-components-web-4.0.0/build/mdc.ripple.js - +# ./build.sh MATERIAL_COMPONENTS_WEB_VERSION PACKAGE_VERSION +./build.sh 7.0.0 0.11.0 ``` diff --git a/brave-logotype-full-color.png b/brave-logotype-full-color.png new file mode 100644 index 0000000..a18d74d Binary files /dev/null and b/brave-logotype-full-color.png differ diff --git a/build-dep.sh b/build-dep.sh new file mode 100755 index 0000000..4678ecc --- /dev/null +++ b/build-dep.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +MCW_VERSION=$1 + +sudo apt-get install -y libcairo2-dev +sudo apt-get install -y libpango1.0-dev + +wget "https://github.com/material-components/material-components-web/archive/v$MCW_VERSION.zip" +unzip v$MCW_VERSION.zip +cd material-components-web-$MCW_VERSION/ +npm install +npm run postinstall +npm run build + diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..964637d --- /dev/null +++ b/build.sh @@ -0,0 +1,19 @@ +#/bin/bash + +MCW_VERSION=$1 +PACKAGE_VERSION=$2 + +zip $PACKAGE_VERSION.zip \ + manifest.json \ + pvv.png \ + popup.js \ + popup.html \ + README.md \ + LICENSE \ + icon*.png \ + contentscript.js \ + material-components-web-$MCW_VERSION/build/material-components-web.css \ + material-components-web-$MCW_VERSION/build/mdc.ripple.css \ + material-components-web-$MCW_VERSION/build/mdc.autoInit.js \ + material-components-web-$MCW_VERSION/build/material-components-web.js \ + material-components-web-$MCW_VERSION/build/mdc.ripple.js diff --git a/docker-build-dep.sh b/docker-build-dep.sh new file mode 100755 index 0000000..1690c85 --- /dev/null +++ b/docker-build-dep.sh @@ -0,0 +1,17 @@ +#/bin/bash + +DOCKER_IMAGE=node:14.12-buster +CONTAINER_NAME=pvv-build +MCW_VERSION=$1 + +echo "Build Material-Components-Web-$MCW_VERSION" + +# Remove container if already exists +docker rm $CONTAINER_NAME > /dev/null +rm -r material-components-web-$MCW_VERSION + +docker create --name $CONTAINER_NAME $DOCKER_IMAGE ./build-dep.sh $MCW_VERSION +docker cp . $CONTAINER_NAME:/ +docker start -i $CONTAINER_NAME +docker cp $CONTAINER_NAME:/material-components-web-$MCW_VERSION ./ +docker rm $CONTAINER_NAME diff --git a/manifest.json b/manifest.json index 03e4532..979f17c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "Persistent Video/Audio Volume", - "version" : "0.10.1", + "version" : "0.11.0", "manifest_version" : 2, "description" : "Saves video and audio volume", "permissions": ["storage", "tabs", ""], diff --git a/popup.html b/popup.html index aab3b35..6f5ca99 100644 --- a/popup.html +++ b/popup.html @@ -1,8 +1,8 @@ - - + +