Skip to content

Commit

Permalink
Merge branch 'release-0.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
puddingspudding committed Oct 3, 2020
2 parents 80aa47f + 1d6a6f2 commit 1060fda
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 33 deletions.
52 changes: 25 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
<a href="https://chrome.google.com/webstore/detail/persistent-video-volume/ppoliijncpdcgddmfibmgnjhegceaadj" target="_blank">
<img src="https://developer.chrome.com/webstore/images/ChromeWebStore_Badge_v2_206x58.png" height="60px"/>
</a>
<a href="https://addons.mozilla.org/de/firefox/addon/persistent-video-audio-volume/?src=external-github" target="_blank">
<img src="https://addons.cdn.mozilla.net/static/img/addons-buttons/AMO-button_1.png" height="60px"/>
</a>
<a href="https://chrome.google.com/webstore/detail/persistent-video-volume/ppoliijncpdcgddmfibmgnjhegceaadj" target="_blank">
<img src="https://github.com/puddingspudding/persistent-video-volume/raw/release-0.11.0/brave-logotype-full-color.png" height="60px"/>
</a>

## 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

Expand All @@ -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
```

Binary file added brave-logotype-full-color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions build-dep.sh
Original file line number Diff line number Diff line change
@@ -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

19 changes: 19 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions docker-build-dep.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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", "<all_urls>"],
Expand Down
10 changes: 5 additions & 5 deletions popup.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="material-components-web-4.0.0/build/material-components-web.css">
<link rel="stylesheet" href="material-components-web-4.0.0/build/mdc.ripple.css">
<link rel="stylesheet" href="material-components-web-7.0.0/build/material-components-web.css">
<link rel="stylesheet" href="material-components-web-7.0.0/build/mdc.ripple.css">
<style type="text/css">
html, body {
width: 300px;
Expand Down Expand Up @@ -70,9 +70,9 @@
</div>
</div>

<script src="material-components-web-4.0.0/build/mdc.autoInit.js"></script>
<script src="material-components-web-4.0.0/build/material-components-web.js"></script>
<script src="material-components-web-4.0.0/build/mdc.ripple.js"></script>
<script src="material-components-web-7.0.0/build/mdc.autoInit.js"></script>
<script src="material-components-web-7.0.0/build/material-components-web.js"></script>
<script src="material-components-web-7.0.0/build/mdc.ripple.js"></script>
<script src="popup.js"></script>

</body>
Expand Down

0 comments on commit 1060fda

Please sign in to comment.