forked from zotan/snowleopard
Add various patches
This commit is contained in:
parent
2eff6affed
commit
1f83a5ddbe
22
patches/0004-remove-snippets-from-home.patch
Normal file
22
patches/0004-remove-snippets-from-home.patch
Normal 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() {
|
21
patches/0005-disable-new-tab-ads.patch
Normal file
21
patches/0005-disable-new-tab-ads.patch
Normal 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");
|
Loading…
Reference in a new issue