Compare commits

...

8 Commits

19 changed files with 32 additions and 90 deletions

View File

@ -47,8 +47,6 @@ repos:
- id: destroyed-symlinks - id: destroyed-symlinks
- id: detect-private-key - id: detect-private-key
- id: fix-byte-order-marker - id: fix-byte-order-marker
#- id: fix-encoding-pragma
#args: [--remove]
- id: mixed-line-ending - id: mixed-line-ending
args: [--fix=auto] args: [--fix=auto]
- id: pretty-format-json - id: pretty-format-json

View File

@ -92,7 +92,8 @@
"Fallback": false, "Fallback": false,
"Locked": true, "Locked": true,
"ProviderURL": "https://dns0.eu/", "ProviderURL": "https://dns0.eu/",
"ProviderURL_outside_europe_aminda_comment": "Swap to https://unfiltered.adguard-dns.com/dns-query if device is expected to cross continents from Europe?" "ProviderURL_outside_europe_aminda_comment": "Swap to https://unfiltered.adguard-dns.com/dns-query if device is expected to cross continents from Europe?",
"ProviderURL_with_ECS_comment": "If changing this to something with non-private ECS, remember to disable ECS in preferences of TRR!"
}, },
"DisableEncryptedClientHello": false, "DisableEncryptedClientHello": false,
"DisableFirefoxAccounts": false, "DisableFirefoxAccounts": false,
@ -331,7 +332,7 @@
"network.trr.disable-ECS": { "network.trr.disable-ECS": {
"Status": "locked", "Status": "locked",
"Type": "boolean", "Type": "boolean",
"Value": true "Value": false
}, },
"network.trr.display_fallback_warning": { "network.trr.display_fallback_warning": {
"Status": "locked", "Status": "locked",
@ -434,6 +435,7 @@
{ {
"Alias": "dl", "Alias": "dl",
"Description": "Minimal, ad-free version of DuckDuckGo", "Description": "Minimal, ad-free version of DuckDuckGo",
"IconURL": "https://start.duckduckgo.com/static-assets/favicons/DDG-icon_256x256.png",
"Method": "POST", "Method": "POST",
"Name": "DuckDuckGo Lite", "Name": "DuckDuckGo Lite",
"PostData": "q={searchTerms}", "PostData": "q={searchTerms}",
@ -443,6 +445,7 @@
{ {
"Alias": "d", "Alias": "d",
"Description": "DuckDuckGo Start page version", "Description": "DuckDuckGo Start page version",
"IconURL": "https://start.duckduckgo.com/static-assets/favicons/DDG-icon_256x256.png",
"Method": "GET", "Method": "GET",
"Name": "DuckDuckGo Start", "Name": "DuckDuckGo Start",
"SuggestURLTemplate": "https://start.duckduckgo.com/ac/?q={searchTerms}&type=list", "SuggestURLTemplate": "https://start.duckduckgo.com/ac/?q={searchTerms}&type=list",
@ -460,6 +463,7 @@
{ {
"Alias": "b", "Alias": "b",
"Description": "Brave Search", "Description": "Brave Search",
"IconURL": "https://cdn.search.brave.com/serp/v2/_app/immutable/assets/favicon.acxxetWH.ico",
"Method": "GET", "Method": "GET",
"Name": "Brave Search", "Name": "Brave Search",
"SuggestURLTemplate": "https://search.brave.com/api/suggest?q={searchTerms}", "SuggestURLTemplate": "https://search.brave.com/api/suggest?q={searchTerms}",
@ -468,6 +472,7 @@
{ {
"Alias": "bg", "Alias": "bg",
"Description": "Brave Search Goggles", "Description": "Brave Search Goggles",
"IconURL": "https://cdn.search.brave.com/serp/v2/_app/immutable/assets/favicon.acxxetWH.ico",
"Method": "GET", "Method": "GET",
"Name": "Brave Search Goggles", "Name": "Brave Search Goggles",
"SuggestURLTemplate": "https://search.brave.com/api/suggest?q={searchTerms}", "SuggestURLTemplate": "https://search.brave.com/api/suggest?q={searchTerms}",

View File

@ -17,9 +17,16 @@ touch /etc/firefox/policies/policies.json
chmod -v a+r /etc/firefox/policies/policies.json chmod -v a+r /etc/firefox/policies/policies.json
printf "WARNING! LibreWolf default profile may be masked!\nhttps://codeberg.org/librewolf/issues/issues/1767\n" printf "WARNING! LibreWolf default profile may be masked!\nhttps://codeberg.org/librewolf/issues/issues/1767\n"
# Note to self on ln:
# -s is obviously symbolic link.
# -n will not follow symlink if it's a directory stopping the symlinks.
# pointing to the directory containing them.
# -v is obviously verbose.
# -f is obviously force so there won't be error message about it already
# existing.
# Firefox ESR # Firefox ESR
ln -sfv /etc/firefox /etc/firefox-esr ln -fnsv /etc/firefox /etc/firefox-esr
rm -fv /etc/firefox-esr/firefox-esr
# Chromium # Chromium
mkdir -vp /etc/opt/chromium/policies/managed mkdir -vp /etc/opt/chromium/policies/managed
@ -28,25 +35,17 @@ mkdir -vp /etc/opt/chromium/policies/recommended
chmod -v a+rx /etc/opt/chromium/policies/{managed,recommended}/ chmod -v a+rx /etc/opt/chromium/policies/{managed,recommended}/
# Brave # Brave
ln -sfv /etc/opt/chromium /etc/brave ln -fnsv /etc/opt/chromium /etc/brave
rm -fv /etc/brave/brave
# Vivaldi # Vivaldi
ln -sfv /etc/opt/chromium /etc/chromium ln -fnsv /etc/opt/chromium /etc/chromium
rm -fv /etc/chromium/chromium
# Google Chrome # Google Chrome
ln -sfv /etc/opt/chromium /etc/opt/chrome ln -fnsv /etc/opt/chromium /etc/opt/chrome
rm -fv /etc/etc/opt/chrome/chrome
# Microsoft Edge # Microsoft Edge
# NOTE! It breaks chrome:// URLs so the recommended policy apps as new tab page # I used to have a separate policy for it so remember to remove this manually
# won't work and wants to open Firefox instead, so I am managing the recommended # if it exists!
# policy separately ln -fnsv /etc/opt/chromium /etc/opt/edge
#ln -sfv /etc/opt/chromium /etc/opt/edge
mkdir -vp /etc/opt/edge/policies/recommended
ln -sfv /etc/opt/chromium/policies/managed /etc/opt/edge/policies/managed
rm -fv /etc/opt/edge/policies/managed/managed
printf "WARNING! Edge recommended profiles are managed separately.\n"
set +x set +x

View File

@ -8,7 +8,6 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [`apps-as-homepage.json`](#apps-as-homepagejson)
- [`brave-search.json`](#brave-searchjson) - [`brave-search.json`](#brave-searchjson)
- [`disable-default-browser-check.json`](#disable-default-browser-checkjson) - [`disable-default-browser-check.json`](#disable-default-browser-checkjson)
- [`duckduckgo.json`](#duckduckgojson) - [`duckduckgo.json`](#duckduckgojson)
@ -24,12 +23,6 @@
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
<!-- editorconfig-checker-enable --> <!-- editorconfig-checker-enable -->
## `apps-as-homepage.json`
Sets the new tab page to `chrome://apps` and homepage as the new tab page.
However regardless of allowing the user to change homepage, the new tab page
won't change.
## `brave-search.json` ## `brave-search.json`
Sets and displays recommendation on the use of search.brave.com as a search engine by default. Sets and displays recommendation on the use of search.brave.com as a search engine by default.

View File

@ -1,4 +0,0 @@
{
"HomepageIsNewTabPage": true,
"NewTabPageLocation": "chrome://apps"
}

View File

@ -1,5 +1,6 @@
{ {
"DefaultSearchProviderEnabled": true, "DefaultSearchProviderEnabled": true,
"DefaultSearchProviderImageURL": "https://cdn.search.brave.com/serp/v2/_app/immutable/assets/favicon.acxxetWH.ico",
"DefaultSearchProviderKeyword": "b", "DefaultSearchProviderKeyword": "b",
"DefaultSearchProviderName": "Brave", "DefaultSearchProviderName": "Brave",
"DefaultSearchProviderNewTabURL": "", "DefaultSearchProviderNewTabURL": "",

View File

@ -1,8 +1,11 @@
{ {
"DefaultSearchProviderEnabled": true, "DefaultSearchProviderEnabled": true,
"DefaultSearchProviderImageURL": "https://start.duckduckgo.com/static-assets/favicons/DDG-icon_256x256.png",
"DefaultSearchProviderKeyword": "d", "DefaultSearchProviderKeyword": "d",
"DefaultSearchProviderName": "DuckDuckGo", "DefaultSearchProviderName": "DuckDuckGo",
"DefaultSearchProviderNewTabURL": "", "DefaultSearchProviderNewTabURL": "https://start.duckduckgo.com/chrome_newtab?addon=newext",
"DefaultSearchProviderSearchURL": "https://start.duckduckgo.com/?q={searchTerms}", "DefaultSearchProviderSearchURL": "https://start.duckduckgo.com/?q={searchTerms}&addon=newext",
"DefaultSearchProviderSuggestURL": "https://start.duckduckgo.com/ac/?q={searchTerms}&type=list" "DefaultSearchProviderSuggestURL": "https://start.duckduckgo.com/ac/?q={searchTerms}&type=list",
"HomepageIsNewTabPage": true,
"NewTabPageLocation": "https://start.duckduckgo.com/chrome_newtab?addon=newext"
} }

View File

@ -5,5 +5,7 @@
"DefaultSearchProviderName": "Ecosia", "DefaultSearchProviderName": "Ecosia",
"DefaultSearchProviderNewTabURL": "https://www.ecosia.org/newtab/?addon=chromegpo", "DefaultSearchProviderNewTabURL": "https://www.ecosia.org/newtab/?addon=chromegpo",
"DefaultSearchProviderSearchURL": "https://www.ecosia.org/search?q={searchTerms}&addon=chromegpo", "DefaultSearchProviderSearchURL": "https://www.ecosia.org/search?q={searchTerms}&addon=chromegpo",
"DefaultSearchProviderSuggestURL": "https://ac.ecosia.org/autocomplete?q={searchTerms}" "DefaultSearchProviderSuggestURL": "https://ac.ecosia.org/autocomplete?q={searchTerms}",
"HomepageIsNewTabPage": true,
"NewTabPageLocation": "https://www.ecosia.org/newtab/?addon=chromegpo"
} }

View File

@ -1 +0,0 @@
managed

View File

@ -1 +0,0 @@
../../chromium/policies/managed

View File

@ -1,6 +0,0 @@
brave-search.json
disable-default-browser-check.json
duckduckgo.json
ecosia.json
enable-home.json
no-bookmarks-bar.json

View File

@ -1,37 +0,0 @@
# Microsoft Edge recommended policies
<!-- editorconfig-checker-disable -->
<!-- prettier-ignore-start -->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [Fedora?](#fedora)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- prettier-ignore-end -->
<!-- editorconfig-checker-enable -->
Because apparently Microsoft is so allergic to Chrome, despite being based on
Chromium that they have to rewrite `chrome://` into `edge://` without handling
automatic redirect from the former, so my policy for apps as new page breaks
and suggests opening _Firefox Developer Edition_ for whatever reason.
Thus separate recommended profiles for Microsoft Edge, just so this one is
fixed.
**_Don't expect this directory to be updated, I will probably forget it
myself._**
## Fedora?
```bash
# Removes all three versions of Microsoft Edge from the system.
sudo dnf remove -y microsoft-edge-{stable,beta,dev}
# Remove all three Microsoft Edge repositories
rm -rv /etc/yum.repos.d/microsoft-edge{,-beta,-dev}.repo
# Removes the crontab entries to restore the above, if they didn't get removed
# already.
rm -v /etc/cron.daily/microsoft-edge{,-beta,-dev}
```

View File

@ -1,4 +0,0 @@
{
"HomepageIsNewTabPage": true,
"NewTabPageLocation": "edge://apps"
}

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/brave-search.json

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/disable-default-browser-check.json

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/duckduckgo.json

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/ecosia.json

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/enable-home.json

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/no-bookmarks-bar.json