forked from boredsquirrel/Arkenfox-softening
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arkenfox-script.sh
100 lines (69 loc) · 4.18 KB
/
arkenfox-script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/bin/sh
zenity --info --text=" \n Please close Firefox, if it is running, then close this window! " --title="Installing..."
mkdir ~/.mozilla/firefox/ARKENFOX
cd ~/.mozilla/firefox/ARKENFOX/
wget -O https://raw.githubusercontent.com/arkenfox/user.js/master/user.js
# enable Firefox sync (disabled on Librewolf) ----------
sed -i 's/identity.fxaccounts.enabled", false/identity.fxaccounts.enabled", true/g' user.js
# allow search engine shortcuts --------
sed -i 's/keyword.enabled", false/keyword.enabled", true/g' user.js
# allow new version notes -----------
sed -i 's/user_pref("browser.startup.homepage_override.mstone", "ignore");/#user_pref("browser.startup.homepage_override.mstone", "ignore");/g' user.js
# Allow Captive Portals: --------------
sed -i 's/user_pref(canonicalURL", ";/canonicalURL", "http://www.captive.kuketz.de/g' user.js
sed -i 's/portal-service.enabled", false/portal-service.enabled", true/g' user.js
sed -i 's/network.connectivity-service.enabled", false/network.connectivity-service.enabled", true/g' user.js
# Enable Pocket news (Start page) --------------
sed -i 's/discoverystreamfeed", false/discoverystreamfeed", true/g' user.js
sed -i 's/topstories", false/topstories", true/g' user.js
sed -i 's/highlights.includePocket", false/highlights.includePocket", true/g' user.js
# Restore session, don't autodelete everything ------------------------
sed -i 's/startup.homepage", "about:blank"/startup.homepage", 3/g' user.js
printf """
user_pref("browser.history_expire_days",7);""" >> user.js
printf """
user_pref("browser.sessionstore.restore_pinned_tabs_on_demand",true);""" >> user.js
sed -i 's/sanitizeOnShutdown", true/sanitizeOnShutdown", false/g' user.js
sed -i 's/clearOnShutdown.cache", true/clearOnShutdown.cache", false/g' user.js
sed -i 's/clearOnShutdown.history", true/clearOnShutdown.history", false/g' user.js
sed -i 's/clearOnShutdown.sessions", true/clearOnShutdown.sessions", false/g' user.js
# Disable Letterboxing (optional)
#sed -i 's/resistFingerprinting.letterboxing", true/resistFingerprinting.letterboxing", false/g' user.js
# Cosmetic: prevent Amazon, Google etc. from being pinned to the Newtabpage should you use it
printf """
user_pref("browser.newtabpage.pinned","");""" >> user.js
printf """
# remove Google & co. from "top sites"
user_pref("browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned","");""" >> user.js
# Cosmetic: use system colors
sed -i 's/system_colors", false/system_colors", true/g' user.js
# Improve speed through more caching
sed -i 's/cache.disk.enable", false/cache.disk.enable", true/g' user.js
# Allow WebGL
sed -i 's/webgl.disabled", true/webgl.disabled", false/g' user.js
# Create a profile called Arkenfox and set it as default
cd ~/.mozilla/firefox/
printf"""[Profile2]
Name=Arkenfox
IsRelative=1
Path=ARKENFOX
""" >> profiles.ini
zenity --info --text="The softened Arkenfox profile has been created. \n Under \"about:profiles\" you can create an insecure Profile \n for Banking sites and others that may not work. \n \n Firefox will open, choose the profile "Arkenfox" to continue. " --title="Info"
firefox -P
zenity --info --text="Please install NoScript and disable WebGL on all levels, \n Default, Trusted and Untrusted. You can enable it manually. \." --title="Warning!"
xdg-open https://addons.mozilla.org/en-US/firefox/addon/noscript/
zenity --info --text="\"captive.kuketz.de\" will be used to detect captive portals. You can change it in the settings of \"arkenfox-script\"\." --title="Info"
xdg-open http://captive.kuketz.de
xdg-open https://github.com/trytomakeyouprivate/Arkenfox-softening/blob/main/Addon-recommendations.md
printf """[Desktop Entry]
Exec=/home/user/.scripts/arkenfox-script-native.sh
GenericName=Downloads the latest Arkenfox version, applies softening
Icon=preferences-web-browser-ssl
Name=Update Arkenfox""" > ~/.local/share/applications/Update-Arkenfox.desktop
zenity --info --text="An Appstarter called \"Update Arkenfox\" has been created.
Use that once in a while to keep your settings up to date. " --title="Arkenfox Update"
cd ~
wget https://github.com/trytomakeyouprivate/Arkenfox-softening/raw/main/script-cleaner-native.sh
chmod +x script-cleaner-native.sh
sh script-cleaner-native.sh
fi