1
0
Fork 1

Add various patches

This commit is contained in:
Laura Hausmann 2023-10-27 00:17:04 +02:00
parent 2eff6affed
commit 1f83a5ddbe
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,22 @@
--- a/browser/components/newtab/lib/AboutPreferences.jsm
+++ b/browser/components/newtab/lib/AboutPreferences.jsm
@@ -56,18 +56,7 @@ const PREFS_BEFORE_SECTIONS = () => [
},
];
-const PREFS_AFTER_SECTIONS = () => [
- {
- id: "snippets",
- pref: {
- feed: "feeds.snippets",
- titleString: "home-prefs-snippets-header",
- descString: "home-prefs-snippets-description-new",
- },
- icon: "chrome://global/skin/icons/info.svg",
- eventSource: "SNIPPETS",
- },
-];
+const PREFS_AFTER_SECTIONS = () => [];
class AboutPreferences {
init() {

View file

@ -0,0 +1,21 @@
diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
index 9a64802ccf203..25bd8e706ba65 100644
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -2880,3 +2880,16 @@ pref("browser.privatebrowsing.resetPBM.showConfirmationDialog", true);
#ifdef XP_MACOSX
pref("browser.attribution.macos.enabled", false);
#endif
+
+
+// -- SL customizations -- //
+
+// Disable ads
+pref("browser.newtabpage.activity-stream.feeds.system.topstories", false);
+pref("browser.newtabpage.activity-stream.system.showSponsored", false);
+pref("browser.newtabpage.activity-stream.showSponsored", false);
+pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
+
+// Set home + new tab pages to about:blank
+pref("browser.newtabpage.enabled", false);
+pref("browser.startup.homepage", "about:blank");