From 36adc787ee5750eb79fe59b4f55a8d86c775c21b Mon Sep 17 00:00:00 2001 From: marlonivo Date: Mon, 12 Aug 2024 01:22:17 +0000 Subject: update --- install.sh | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 install.sh (limited to 'install.sh') diff --git a/install.sh b/install.sh deleted file mode 100644 index bf83876..0000000 --- a/install.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh - -# Autobootstrap Script for unifox.js -# by Marlon Ivo -# License: GNU GPLv3 - -### OPTIONS AND VARIABLES ### - -dotfilesrepo="https://github.com/marlonivo/ricebowl.git" -progsfile="https://raw.githubusercontent.com/LukeSmithxyz/LARBS/master/static/progs.csv" -aurhelper="yay" -repobranch="master" -export TERM=ansi - -### Copying addons.json, pref.js, userChrome and userContent.css -mkdir -p ~/.mozilla/firefox/*.default-release/chrome -mkdir -p ~/.mozilla/firefox/*.default-release/chrome/img -cp -r chrome ~/.mozilla/firefox/*.default-release/ -cp prefs.js ~/.mozilla/firefox/*.default-release/ -cp addons.json ~/.mozilla/firefox/*.default-release/ - - -### INSTALLING AND CONFIGURING ADDONS -installffaddons(){ - addonlist="ublock-origin decentraleyes istilldontcareaboutcookies vimimium-c" - addontmp="$(mktemp -d)" - trap "rm -fr $addontmp" HUP INT QUIT TERM PWR EXIT - IFS=' ' - sudo -u "$name" mkdir -p "$pdir/extensions/" - for addon in $addonlist; do - if [ "$addon" = "ublock-origin" ]; then - addonurl="$(curl -sL https://api.github.com/repos/gorhill/uBlock/releases/latest | grep -E 'browser_download_url.*\.firefox\.xpi' | cut -d '"' -f 4)" - else - addonurl="$(curl --silent "https://addons.mozilla.org/en-US/firefox/addon/${addon}/" | grep -o 'https://addons.mozilla.org/firefox/downloads/file/[^"]*')" - fi - file="${addonurl##*/}" - sudo -u "$name" curl -LOs "$addonurl" > "$addontmp/$file" - id="$(unzip -p "$file" manifest.json | grep "\"id\"")" - id="${id%\"*}" - id="${id##*\"}" - mv "$file" "$pdir/extensions/$id.xpi" - done - chown -R "$name:$name" "$pdir/extensions" -} -- cgit v1.2.3