diff --git a/helpers/DATA/firefox/newtab/directory.png b/helpers/DATA/firefox/newtab/directory.png new file mode 100644 index 0000000..4fbaacd Binary files /dev/null and b/helpers/DATA/firefox/newtab/directory.png differ diff --git a/helpers/DATA/firefox/newtab/fsf.ico b/helpers/DATA/firefox/newtab/fsf.ico new file mode 100644 index 0000000..1a616bd Binary files /dev/null and b/helpers/DATA/firefox/newtab/fsf.ico differ diff --git a/helpers/DATA/firefox/newtab/fsf.png b/helpers/DATA/firefox/newtab/fsf.png new file mode 100644 index 0000000..2ff8aff Binary files /dev/null and b/helpers/DATA/firefox/newtab/fsf.png differ diff --git a/helpers/DATA/firefox/newtab/fsfe.ico b/helpers/DATA/firefox/newtab/fsfe.ico new file mode 100644 index 0000000..9127b92 Binary files /dev/null and b/helpers/DATA/firefox/newtab/fsfe.ico differ diff --git a/helpers/DATA/firefox/newtab/fsfe.png b/helpers/DATA/firefox/newtab/fsfe.png new file mode 100644 index 0000000..0127c58 Binary files /dev/null and b/helpers/DATA/firefox/newtab/fsfe.png differ diff --git a/helpers/DATA/firefox/newtab/gnu.ico b/helpers/DATA/firefox/newtab/gnu.ico new file mode 100644 index 0000000..3891a85 Binary files /dev/null and b/helpers/DATA/firefox/newtab/gnu.ico differ diff --git a/helpers/DATA/firefox/newtab/gnu.png b/helpers/DATA/firefox/newtab/gnu.png new file mode 100644 index 0000000..0669539 Binary files /dev/null and b/helpers/DATA/firefox/newtab/gnu.png differ diff --git a/helpers/DATA/firefox/newtab/libreplanet.ico b/helpers/DATA/firefox/newtab/libreplanet.ico new file mode 100644 index 0000000..c55e25e Binary files /dev/null and b/helpers/DATA/firefox/newtab/libreplanet.ico differ diff --git a/helpers/DATA/firefox/newtab/libreplanet.png b/helpers/DATA/firefox/newtab/libreplanet.png new file mode 100644 index 0000000..3b60e47 Binary files /dev/null and b/helpers/DATA/firefox/newtab/libreplanet.png differ diff --git a/helpers/DATA/firefox/newtab/trisquel.ico b/helpers/DATA/firefox/newtab/trisquel.ico new file mode 100644 index 0000000..0c0408c Binary files /dev/null and b/helpers/DATA/firefox/newtab/trisquel.ico differ diff --git a/helpers/DATA/firefox/newtab/trisquel.png b/helpers/DATA/firefox/newtab/trisquel.png new file mode 100644 index 0000000..3e5b00d Binary files /dev/null and b/helpers/DATA/firefox/newtab/trisquel.png differ diff --git a/helpers/DATA/firefox/newtab/wikinews.ico b/helpers/DATA/firefox/newtab/wikinews.ico new file mode 100644 index 0000000..6c7ce5a Binary files /dev/null and b/helpers/DATA/firefox/newtab/wikinews.ico differ diff --git a/helpers/DATA/firefox/newtab/wikinews.png b/helpers/DATA/firefox/newtab/wikinews.png new file mode 100644 index 0000000..93bde2c Binary files /dev/null and b/helpers/DATA/firefox/newtab/wikinews.png differ diff --git a/helpers/DATA/firefox/newtab/wikipedia-org@2x.png b/helpers/DATA/firefox/newtab/wikipedia-org@2x.png new file mode 100644 index 0000000..506aa1a Binary files /dev/null and b/helpers/DATA/firefox/newtab/wikipedia-org@2x.png differ diff --git a/helpers/DATA/firefox/newtab/wikipedia.ico b/helpers/DATA/firefox/newtab/wikipedia.ico new file mode 100644 index 0000000..e700218 Binary files /dev/null and b/helpers/DATA/firefox/newtab/wikipedia.ico differ diff --git a/helpers/DATA/firefox/newtab/wikipedia.png b/helpers/DATA/firefox/newtab/wikipedia.png new file mode 100644 index 0000000..506aa1a Binary files /dev/null and b/helpers/DATA/firefox/newtab/wikipedia.png differ diff --git a/helpers/DATA/firefox/settings.js b/helpers/DATA/firefox/settings.js index 481a8c2..0715c78 100644 --- a/helpers/DATA/firefox/settings.js +++ b/helpers/DATA/firefox/settings.js @@ -232,7 +232,7 @@ pref("browser.onboarding.updatetour", "performance,library,singlesearch,customiz pref("browser.onboarding.enabled", false); // New tab settings -pref("browser.newtabpage.activity-stream.default.sites", "https://trisquel.info/,https://www.gnu.org/,https://www.fsf.org/,https://libreplanet.org/,https://www.wikipedia.org/wiki/,https://www.wikinews.org/wiki/"); +pref("browser.newtabpage.activity-stream.default.sites", "https://trisquel.info/,https://www.gnu.org/,https://www.fsf.org/,https://directory.fsf.org,https://libreplanet.org/,https://fsfe.org,https://www.wikipedia.org/wiki/,https://www.wikinews.org/wiki/"); pref("browser.newtabpage.activity-stream.showTopSites",true); pref("browser.newtabpage.activity-stream.feeds.section.topstories",false); pref("browser.newtabpage.activity-stream.feeds.snippets",false); diff --git a/helpers/make-firefox b/helpers/make-firefox index fe7c6f6..fe1828d 100644 --- a/helpers/make-firefox +++ b/helpers/make-firefox @@ -35,7 +35,7 @@ sed '/async download.*/areturn;' -i services/settings/RemoteSettingsClient.jsm s # Disable activity-stream antifeatures. # These are not condensed into a single sed script to make it fail on individual commands that didn't change the source ActivityStream=browser/components/newtab/lib/ActivityStream.jsm -sed '/^const DEFAULT_SITES/,/^])\;/c const DEFAULT_SITES = new Map\([[""]]\);' -i $ActivityStream +sed '/^const DEFAULT_SITES/,/^])\;/c const DEFAULT_SITES = new Map\([[""]]\);' -i browser/components/newtab/lib/DefaultSites.jsm sed '/"showSponsored"/,/value/s/value: true/value: false/' -i $ActivityStream sed '/"telemetry"/,/value/s/value: true/value: false/' -i $ActivityStream sed '/"section.highlights.includePocket"/,/value/s/value: true/value: false/' -i $ActivityStream @@ -86,6 +86,65 @@ sed "s/iceweasel,/iceweasel, firefox,/" -i debian/control.in sed -i /ubuntu-bookmarks/d debian/patches/series rm debian/patches/ubuntu-bookmarks* +# Custom newtab images +sed '/^]$/d' -i browser/components/newtab/data/content/tippytop/top_sites.json +sed 's/}$/},/' -i browser/components/newtab/data/content/tippytop/top_sites.json + +cat << EOF >> browser/components/newtab/data/content/tippytop/top_sites.json + { + "title": "Trisquel", + "url": "https://trisquel.info/", + "image_url": "images/trisquel.png", + "favicon_url": "favicons/trisquel.ico" + }, + { + "title": "GNU", + "url": "https://www.gnu.org/", + "image_url": "images/gnu.png", + "favicon_url": "favicons/gnu.ico" + }, + { + "title": "FSF", + "url": "https://www.fsf.org/", + "image_url": "images/fsf.png", + "favicon_url": "favicons/fsf.ico" + }, + { + "title": "FSF Directory", + "url": "https://directory.fsf.org/", + "image_url": "images/fsf.png", + "favicon_url": "favicons/fsf.ico" + }, + { + "title": "LibrePlanet", + "url": "https://libreplanet.org/", + "image_url": "images/libreplanet.png", + "favicon_url": "favicons/libreplanet.ico" + }, + { + "title": "FSF Europe", + "url": "https://fsfe.org/", + "image_url": "images/fsfe.png", + "favicon_url": "favicons/fsfe.ico" + }, + { + "title": "Wikipedia", + "url": "https://www.wikipedia.org/wiki/", + "image_url": "images/wikipedia.png", + "favicon_url": "favicons/wikipedia.ico" + }, + { + "title": "Wikinews", + "url": "https://www.wikinews.org/wiki/", + "image_url": "images/wikinews.png", + "favicon_url": "favicons/wikinews.ico" + } +] +EOF + +cp $DATA/newtab/*.ico browser/components/newtab/data/content/tippytop/favicons/ +cp $DATA/newtab/*.png browser/components/newtab/data/content/tippytop/images/ + # Make DuckDuckGo the default engine sed '/searchDefault/s/: \".*\"/: "DuckDuckGo"/g' -i browser/components/search/extensions/list.json sed '/visibleDefaultEngines/{n; s/"ddg",//; s/\"/"ddg", "/}' -i browser/components/search/extensions/list.json @@ -213,8 +272,6 @@ sed -i 's/Mozilla\ Project<\/a>/> debian/vendor-firefox.js @@ -253,11 +310,6 @@ browser.suggestedsites.webmaker.title=GNU Project browser.suggestedsites.webmaker.url=https://www.gnu.org EOF -sed -i '/aboutPage.logoTrademark/d' \ -mobile/android/locales/en-US/chrome/about.dtd -echo -e '\n' >> \ -mobile/android/locales/en-US/chrome/about.dtd - # Branding rm mobile/android/branding/{official,unofficial,beta,nightly} -rf cp -a $DATA/android/branding/ mobile/android/branding/official