summaryrefslogtreecommitdiff
path: root/public/thesiah.sh
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-09-12 23:38:27 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-09-12 23:38:27 +0900
commit8aa64c1a791cb13c785a2c8b1d483d6480ef9b25 (patch)
tree39c8cc86c7bf9a536913af6a758bc872b1d0b20b /public/thesiah.sh
parent5be4f5022f1a4ac19d7785d734da3ff7ac7eece6 (diff)
Init
Diffstat (limited to 'public/thesiah.sh')
-rwxr-xr-xpublic/thesiah.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/public/thesiah.sh b/public/thesiah.sh
index 4260782..283b847 100755
--- a/public/thesiah.sh
+++ b/public/thesiah.sh
@@ -271,9 +271,9 @@ vimplugininstall() {
makeuserjs() {
# Get the Arkenfox user.js and prepare it.
- arkenfox="$pdir/arkenfox.js"
- overrides="$pdir/user-overrides.js"
- userjs="$pdir/user.js"
+ arkenfox="$sipdir/arkenfox.js"
+ overrides="$sipdir/user-overrides.js"
+ userjs="$sipdir/user.js"
ln -fs "/home/$name/.config/firefox/thesiah.js" "$overrides"
[ ! -f "$arkenfox" ] && curl -sL "https://raw.githubusercontent.com/arkenfox/user.js/master/user.js" >"$arkenfox"
cat "$arkenfox" "$overrides" >"$userjs"
@@ -302,7 +302,7 @@ installffaddons() {
addontmp="$(mktemp -d)"
trap "rm -fr $addontmp" HUP INT QUIT TERM PWR EXIT
IFS=' '
- sudo -u "$name" mkdir -p "$pdir/extensions/"
+ sudo -u "$name" mkdir -p "$sipdir/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)"
@@ -314,9 +314,9 @@ installffaddons() {
id="$(unzip -p "$file" manifest.json | grep "\"id\"")"
id="${id%\"*}"
id="${id##*\"}"
- mv "$file" "$pdir/extensions/$id.xpi"
+ mv "$file" "$sipdir/extensions/$id.xpi"
done
- chown -R "$name:$name" "$pdir/extensions"
+ chown -R "$name:$name" "$sipdir/extensions"
}
librewolfsetup() {