diff --git a/src/home.html b/src/home.html new file mode 100644 index 0000000..1980a95 --- /dev/null +++ b/src/home.html @@ -0,0 +1,94 @@ + + + +Welcome to Firefox on postmarketOS + + + + +

+ Welcome to Firefox on postmarketOS +

+ +

+ This is the desktop version of Firefox, but with a + + mobile-friendly configuration. Try zooming and + scrolling with your fingers! +

+

How to install add-ons

+

+ Use the official + add-on website + from Mozilla. Take care, some add-ons require a lot of access to your + data and may not be respectful of your privacy. Here is a free software + add-on that we trust: +

+ + +

How to change settings

+

+ Read on to set a different homepage, search engine or change other + options. Tap the collapsed menu icon on the top right, then select + Preferences. Tap the same icon again and decrease the + Zoom level to 50%, so the page becomes readable. Next, + tap the category of the setting you want to change on the left — + house for Homepage, magnifying glass for Search. Finally, + change the desired setting on the right. +

+ + diff --git a/src/policies.json b/src/policies.json new file mode 100644 index 0000000..718e292 --- /dev/null +++ b/src/policies.json @@ -0,0 +1,30 @@ +{ + "policies": { + + "DisableDeveloperTools": true, + "DisableFirefoxScreenshots": true, + "DisableFirefoxStudies": true, + "DisableTelemetry": true, + "NewTabPage": false, + "NoDefaultBookmarks": true, + "OverrideFirstRunPage": "", + "OverridePostUpdatePage": "", + + "Homepage": { + "URL": "file:///usr/share/postmarketos-config-firefox/home.html", + "Locked": false, + "StartPage": "homepage" + }, + + "SearchEngines": { + "Default": "DuckDuckGo" + }, + + "UserMessaging": { + "WhatsNew": false, + "ExtensionRecommendations": false, + "FeatureRecommendations": false, + "UrlbarInterventions": false + } + } +} diff --git a/src/prefs.js b/src/prefs.js new file mode 100644 index 0000000..2b8c078 --- /dev/null +++ b/src/prefs.js @@ -0,0 +1,18 @@ +/** Firefox tweaks for postmarketOS **/ + +// Select a mobile user agent for firefox (same as tor browser on android) +pref('general.useragent.override', 'Mozilla/5.0 (Android 6.0; Mobile; rv:68.0) Gecko/20100101 Firefox/68.0'); + +// Enable android-style pinch-to-zoom +pref('dom.w3c.touch_events.enabled', true); +pref('apz.allow_zooming', true); +pref('apz.allow_double_tap_zooming', true); + +// Move all buttons to the overflow menu and remove spacers around the address bar +pref("browser.uiCustomization.state", "{\"placements\":{\"widget-overflow-fixed-list\":[\"stop-reload-button\",\"home-button\",\"library-button\",\"fxa-toolbar-menu-button\",\"sidebar-button\",\"downloads-button\"],\"nav-bar\":[\"back-button\",\"forward-button\",\"urlbar-container\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"tabbrowser-tabs\",\"new-tab-button\",\"alltabs-button\"],\"PersonalToolbar\":[\"personal-bookmarks\"]},\"seen\":[\"developer-button\"],\"dirtyAreaCache\":[\"nav-bar\",\"toolbar-menubar\",\"TabsToolbar\",\"PersonalToolbar\",\"widget-overflow-fixed-list\"],\"currentVersion\":16,\"newElementCount\":4}"); + +// Disable search suggestions +pref('browser.search.suggest.enabled', false); + +// Empty new tab page: faster, less distractions +pref('browser.newtabpage.enabled', false);