Commit ec18a015 by Ruben Rodriguez

Abrowser: added uBlock Origin extension

parent e3281438
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment