Skip to content

Commit b73e1b1

Browse files
authored
Merge pull request LukeSmithxyz#577 from aartoni/feat/librewolf-extensions-as-packages
Use AUR packages instead of installing extensions manually
2 parents 3d344d2 + 1036b9c commit b73e1b1

2 files changed

Lines changed: 4 additions & 28 deletions

File tree

‎static/larbs.sh‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -212,32 +212,6 @@ makeuserjs(){
212212
chown "$name:wheel" "$arkenfox" "$userjs"
213213
}
214214

215-
installffaddons(){
216-
addonlist="ublock-origin decentraleyes istilldontcareaboutcookies vim-vixen"
217-
addontmp="$(mktemp -d)"
218-
trap "rm -fr $addontmp" HUP INT QUIT TERM PWR EXIT
219-
IFS=' '
220-
sudo -u "$name" mkdir -p "$pdir/extensions/"
221-
for addon in $addonlist; do
222-
if [ "$addon" = "ublock-origin" ]; then
223-
addonurl="$(curl -sL https://api.github.com/repos/gorhill/uBlock/releases/latest | grep -E 'browser_download_url.*\.firefox\.xpi' | cut -d '"' -f 4)"
224-
else
225-
addonurl="$(curl --silent "https://addons.mozilla.org/en-US/firefox/addon/${addon}/" | grep -o 'https://addons.mozilla.org/firefox/downloads/file/[^"]*')"
226-
fi
227-
file="${addonurl##*/}"
228-
sudo -u "$name" curl -LOs "$addonurl" > "$addontmp/$file"
229-
id="$(unzip -p "$file" manifest.json | grep "\"id\"")"
230-
id="${id%\"*}"
231-
id="${id##*\"}"
232-
mv "$file" "$pdir/extensions/$id.xpi"
233-
done
234-
chown -R "$name:$name" "$pdir/extensions"
235-
# Fix a Vim Vixen bug with dark mode not fixed on upstream:
236-
sudo -u "$name" mkdir -p "$pdir/chrome"
237-
[ ! -f "$pdir/chrome/userContent.css" ] && sudo -u "$name" echo ".vimvixen-console-frame { color-scheme: light !important; }
238-
#category-more-from-mozilla { display: none !important }" > "$pdir/chrome/userContent.css"
239-
}
240-
241215
finalize() {
242216
whiptail --title "All done!" \
243217
--msgbox "Congrats! Provided there were no hidden errors, the script completed successfully and all the programs and configuration files should be in place.\\n\\nTo run the new graphical environment, log out and log back in as your new user, then run the command \"startx\" to start the graphical environment (it will start automatically in tty1).\\n\\n.t Luke" 13 80
@@ -364,8 +338,6 @@ pdir="$browserdir/$profile"
364338

365339
[ -d "$pdir" ] && makeuserjs
366340

367-
[ -d "$pdir" ] && installffaddons
368-
369341
# Kill the now unnecessary librewolf instance.
370342
pkill -u "$name" librewolf
371343

‎static/progs.csv‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ A,gtk-theme-arc-gruvbox-git,"gives the dark GTK theme used in LARBS."
3333
,ncmpcpp,"a ncurses interface for music with multiple formats and a powerful tag editor."
3434
,newsboat,"is a terminal RSS client."
3535
A,librewolf-bin,"is the default browser of LARBS which also comes with ad-blocking and other sensible and necessary features by default."
36+
A,librewolf-extension-localcdn-bin,"local emulation of Content Delivery Networks."
37+
A,librewolf-extension-istilldontcareaboutcookies-bin,"removes annoying cookie banners"
38+
A,librewolf-extension-tridactyl-bin,"vim bindings in your browser."
39+
A,librewolf-extension-ublock-origin-bin,"the best ad blocker in town."
3640
A,arkenfox-user.js,"provides hardened security settings for Firefox and Librewolf to avoid Mozilla spyware and general web fingerprinting."
3741
,noto-fonts,"is an expansive font package."
3842
,noto-fonts-emoji,"is an emoji font."

0 commit comments

Comments
 (0)