Abrowser: added uBlock Origin extension
This commit is contained in:
parent
550bed8e8a
commit
d6d66f4029
2 changed files with 25 additions and 0 deletions
BIN
helpers/DATA/firefox/extensions/uBlock0@raymondhill.net.xpi
Normal file
BIN
helpers/DATA/firefox/extensions/uBlock0@raymondhill.net.xpi
Normal file
Binary file not shown.
25
helpers/DATA/firefox/update-extensions.sh
Normal file
25
helpers/DATA/firefox/update-extensions.sh
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
for extension in 607454; do
|
||||||
|
|
||||||
|
rm -rf /tmp/update-extension
|
||||||
|
mkdir /tmp/update-extension
|
||||||
|
(cd /tmp/update-extension
|
||||||
|
wget -O extension.xpi https://addons.mozilla.org/firefox/downloads/latest/$extension/addon-${extension}-latest.xpi
|
||||||
|
unzip extension.xpi
|
||||||
|
rm extension.xpi)
|
||||||
|
|
||||||
|
|
||||||
|
if [ -f /tmp/update-extension/install.rdf ]; then
|
||||||
|
ID=$(grep em:id /tmp/update-extension/install.rdf |sed 's/.*<em:id>//; s/<.*//' |head -n1)
|
||||||
|
fi
|
||||||
|
if [ -f /tmp/update-extension/manifest.json ]; then
|
||||||
|
ID=$(grep '"id":' /tmp/update-extension/manifest.json |head -n1|cut -d \" -f 4)
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf extensions/$ID
|
||||||
|
mv /tmp/update-extension extensions/$ID
|
||||||
|
|
||||||
|
done
|
||||||
Loading…
Add table
Add a link
Reference in a new issue