From 6b109ac0d0a58c30c43e2fac6920b99c915f9cd3 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 1 Jan 2021 23:45:32 -0500 Subject: [PATCH] PKGBUILDs: Add sensible-chromium I actually wrote this in 2018 but never committed it. Might as well do that now. The extensions it installs are uBlock Origin, Vimium, and HTTPS Everywhere. --- .../101-search-provider.json | 6 +++ .../sensible-chromium/102-homepage.json | 3 ++ .../sensible-chromium/103-new-tab.json | 3 ++ .../201-promotional-tabs.json | 3 ++ .../sensible-chromium/202-safe-browsing.json | 4 ++ .../203-download-location.json | 3 ++ .../204-search-suggestions.json | 3 ++ .../sensible-chromium/205-spell-check.json | 3 ++ .../206-data-collection.json | 3 ++ .../PKGBUILDs/sensible-chromium/PKGBUILD | 47 +++++++++++++++++++ .../cjpalhdlnbpafiamejdnhcphjbkeiagm.json | 3 ++ .../dbepggeogbaibhgnhhndojpepiihcmeb.json | 3 ++ .../gcbommkclmclpchllfjekcdonpmejbdp.json | 3 ++ 13 files changed, 87 insertions(+) create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/101-search-provider.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/102-homepage.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/103-new-tab.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/201-promotional-tabs.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/202-safe-browsing.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/203-download-location.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/204-search-suggestions.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/205-spell-check.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/206-data-collection.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/PKGBUILD create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/cjpalhdlnbpafiamejdnhcphjbkeiagm.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/dbepggeogbaibhgnhhndojpepiihcmeb.json create mode 100644 .archlinux/PKGBUILDs/sensible-chromium/gcbommkclmclpchllfjekcdonpmejbdp.json diff --git a/.archlinux/PKGBUILDs/sensible-chromium/101-search-provider.json b/.archlinux/PKGBUILDs/sensible-chromium/101-search-provider.json new file mode 100644 index 00000000..25104774 --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/101-search-provider.json @@ -0,0 +1,6 @@ +{ + "DefaultSearchProviderEnabled": true, + "DefaultSearchProviderName": "DuckDuckGo", + "DefaultSearchProviderSearchURL": "https://duckduckgo.com/?q={searchTerms}", + "DefaultSearchProviderIconURL": "https://duckduckgo.com/favicon.ico" +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/102-homepage.json b/.archlinux/PKGBUILDs/sensible-chromium/102-homepage.json new file mode 100644 index 00000000..451b8823 --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/102-homepage.json @@ -0,0 +1,3 @@ +{ + "HomepageIsNewTabPage": true +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/103-new-tab.json b/.archlinux/PKGBUILDs/sensible-chromium/103-new-tab.json new file mode 100644 index 00000000..37813f29 --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/103-new-tab.json @@ -0,0 +1,3 @@ +{ + "NewTabPageLocation": "http://localhost:3000" +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/201-promotional-tabs.json b/.archlinux/PKGBUILDs/sensible-chromium/201-promotional-tabs.json new file mode 100644 index 00000000..e5a7885d --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/201-promotional-tabs.json @@ -0,0 +1,3 @@ +{ + "PromotionalTabsEnabled": false +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/202-safe-browsing.json b/.archlinux/PKGBUILDs/sensible-chromium/202-safe-browsing.json new file mode 100644 index 00000000..7ef5c397 --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/202-safe-browsing.json @@ -0,0 +1,4 @@ +{ + "SafeBrowsingEnabled": false, + "SafeBrowsingExtendedReportingEnabled": false +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/203-download-location.json b/.archlinux/PKGBUILDs/sensible-chromium/203-download-location.json new file mode 100644 index 00000000..4b22add6 --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/203-download-location.json @@ -0,0 +1,3 @@ +{ + "PromptForDownloadLocation": false +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/204-search-suggestions.json b/.archlinux/PKGBUILDs/sensible-chromium/204-search-suggestions.json new file mode 100644 index 00000000..e453affd --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/204-search-suggestions.json @@ -0,0 +1,3 @@ +{ + "SearchSuggestEnabled": false +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/205-spell-check.json b/.archlinux/PKGBUILDs/sensible-chromium/205-spell-check.json new file mode 100644 index 00000000..2c563542 --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/205-spell-check.json @@ -0,0 +1,3 @@ +{ + "SpellCheckServiceEnabled": false +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/206-data-collection.json b/.archlinux/PKGBUILDs/sensible-chromium/206-data-collection.json new file mode 100644 index 00000000..d61145cf --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/206-data-collection.json @@ -0,0 +1,3 @@ +{ + "UrlKeyedAnonymizedDataCollectionEnabled": false +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/PKGBUILD b/.archlinux/PKGBUILDs/sensible-chromium/PKGBUILD new file mode 100644 index 00000000..28e0a207 --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/PKGBUILD @@ -0,0 +1,47 @@ +pkgname=sensible-chromium +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Sane defaults for the chromium web browser" +arch=('any') +source=('cjpalhdlnbpafiamejdnhcphjbkeiagm.json' + 'dbepggeogbaibhgnhhndojpepiihcmeb.json' + 'gcbommkclmclpchllfjekcdonpmejbdp.json' + '101-search-provider.json' + '102-homepage.json' + '103-new-tab.json' + '201-promotional-tabs.json' + '202-safe-browsing.json' + '203-download-location.json' + '204-search-suggestions.json' + '205-spell-check.json' + '206-data-collection.json') +sha256sums=('5bcd92f712b450ecb20eb390f957216d488e5dc0c4abbb2cbf4dd6b570b11edc' + '5bcd92f712b450ecb20eb390f957216d488e5dc0c4abbb2cbf4dd6b570b11edc' + '5bcd92f712b450ecb20eb390f957216d488e5dc0c4abbb2cbf4dd6b570b11edc' + 'c76a7a4c6b8ba10b2c2f478c3fce8577c055b1c7c3216d6feba550f097aaca4c' + '3bd32ca3c77ad91ce8355223d76385e21ff49fc6388bc1dc017319a402908141' + '4d325fd0787f3fd9b9b16bcf5159ebaafdf0f722b9eaaa9deeb4758300f8cb56' + '283923b96ca0b58340dcb35d5d782d8d49d806cdaea8b70a95365f154e916907' + 'c7034bb6f603599592e452ef5d6d6b676529cdb05454072eabc8037595256c8d' + '48c3aa65851a4287e1a97667f57be12245a1a54067debe0ea858452d6fec0b19' + 'e6b382bda897e7e0731adde76a572fe4b075ed2a0d95b85678cd7184b43efec3' + 'fcc676697f930529b8605c703f33239bc55cb2f4563043353af6b1ec8712e431' + '732abce54318ed2dd7fdb330800d5f2d989a0086eb8f581475279f151d8a55f4') + +package() { + _ext="$pkgdir"/usr/share/chromium/extensions + _pol="$pkgdir"/etc/chromium/policies + + install -Dm644 cjpalhdlnbpafiamejdnhcphjbkeiagm.json "$_ext"/cjpalhdlnbpafiamejdnhcphjbkeiagm.json + install -Dm644 dbepggeogbaibhgnhhndojpepiihcmeb.json "$_ext"/dbepggeogbaibhgnhhndojpepiihcmeb.json + install -Dm644 gcbommkclmclpchllfjekcdonpmejbdp.json "$_ext"/gcbommkclmclpchllfjekcdonpmejbdp.json + install -Dm644 101-search-provider.json "$_pol"/recommended/101-search-provider.json + install -Dm644 102-homepage.json "$_pol"/recommended/102-homepage.json + install -Dm644 103-new-tab.json "$_pol"/recommended/103-new-tab.json + install -Dm644 201-promotional-tabs.json "$_pol"/managed/201-promotional-tabs.json + install -Dm644 202-safe-browsing.json "$_pol"/managed/202-safe-browsing.json + install -Dm644 203-download-location.json "$_pol"/managed/203-download-location.json + install -Dm644 204-search-suggestions.json "$_pol"/managed/204-search-suggestions.json + install -Dm644 205-spell-check.json "$_pol"/managed/205-spell-check.json + install -Dm644 206-data-collection.json "$_pol"/managed/206-data-collection.json +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/cjpalhdlnbpafiamejdnhcphjbkeiagm.json b/.archlinux/PKGBUILDs/sensible-chromium/cjpalhdlnbpafiamejdnhcphjbkeiagm.json new file mode 100644 index 00000000..17f681d0 --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/cjpalhdlnbpafiamejdnhcphjbkeiagm.json @@ -0,0 +1,3 @@ +{ + "external_update_url": "https://clients2.google.com/service/update2/crx" +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/dbepggeogbaibhgnhhndojpepiihcmeb.json b/.archlinux/PKGBUILDs/sensible-chromium/dbepggeogbaibhgnhhndojpepiihcmeb.json new file mode 100644 index 00000000..17f681d0 --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/dbepggeogbaibhgnhhndojpepiihcmeb.json @@ -0,0 +1,3 @@ +{ + "external_update_url": "https://clients2.google.com/service/update2/crx" +} diff --git a/.archlinux/PKGBUILDs/sensible-chromium/gcbommkclmclpchllfjekcdonpmejbdp.json b/.archlinux/PKGBUILDs/sensible-chromium/gcbommkclmclpchllfjekcdonpmejbdp.json new file mode 100644 index 00000000..17f681d0 --- /dev/null +++ b/.archlinux/PKGBUILDs/sensible-chromium/gcbommkclmclpchllfjekcdonpmejbdp.json @@ -0,0 +1,3 @@ +{ + "external_update_url": "https://clients2.google.com/service/update2/crx" +}