Homepage: set to about:home (MR 19)

Use the standard Firefox homepage as default homepage. The information
on the previous homepage is mostly obsolete, and this makes it look much
nicer.
This commit is contained in:
Oliver Smith 2021-12-04 19:50:56 +01:00
parent af7c250fe3
commit 559d48638e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 2 additions and 127 deletions

View file

@ -10,18 +10,13 @@ DESTDIR :=
FIREFOX_DIR := /usr/lib/firefox
FIREFOX_CONFIG_DIR := /etc/firefox
all: out/home.html out/userChrome.css out/userContent.css
all: out/userChrome.css out/userContent.css
clean:
rm -rf out
out:
mkdir out
out/home.html: src/homepage/*.html out
( cd src/homepage; cat $(HOMEPAGE_FILES) ) > $@.temp
sed "s/@DISTRO@/$(DISTRO)/g" "$@.temp" > "$@"
rm "$@.temp"
out/userChrome.css: $(USERCHROME_FILES) out
cat $(USERCHROME_FILES) > $@
@ -35,8 +30,6 @@ install: all
"$(DESTDIR)/$(FIREFOX_DIR)/defaults/pref/mobile-config-prefs.js"
install -Dm644 src/mobile-config-autoconfig.js \
"$(DESTDIR)/$(FIREFOX_DIR)/mobile-config-autoconfig.js"
install -Dm644 "out/home.html" \
"$(DESTDIR)/usr/share/mobile-config-firefox/home.html"
install -Dm644 "out/userChrome.css" \
"$(DESTDIR)/etc/mobile-config-firefox/userChrome.css"
install -Dm644 "out/userContent.css" \

View file

@ -1,34 +0,0 @@
<!-- Copyright 2021 Oliver Smith
SPDX-License-Identifier: GPL-3.0-or-later -->
<p class="text">
This is the desktop version of Firefox, but with a
<a href="https://gitlab.com/postmarketOS/mobile-config-firefox">
mobile-friendly configuration</a>. Try zooming and
scrolling with your fingers!
</p>
<h2>How to install add-ons</h2>
<p class="text">
Use the official
<a href="https://addons.mozilla.org/firefox/">add-on website</a>
from Mozilla. Ignore the note about "Add-ons Manager" and hit "Download
file" to install add-ons. Take care, some add-ons may not be respectful
of your privacy. Here is a free software add-on that we trust:
</p>
<ul>
<li> <a href="https://addons.mozilla.org/firefox/addon/ublock-origin/">uBlock Origin</a>:
a wide-spectrum content blocker, that prevents most
websites from wasting <i>your</i> resources (time,
traffic, battery, CPU and RAM).
</ul>
<h2>How to change settings</h2>
<p class="text">
Read on to set a different homepage, search engine or change other
options. Tap the collapsed menu icon on the top right, then select
<i>Preferences</i>. Next, tap the category of the setting you want to
change on the left &mdash; house for <i>Homepage</i>, magnifying glass
for <i>Search</i>. Finally, change the desired setting on the right.
</p>
</body>
</html>

View file

@ -1,7 +0,0 @@
<!-- Copyright 2021 Oliver Smith
SPDX-License-Identifier: GPL-3.0-or-later -->
<p class="distro-links">
<a href="https://postmarketos.org/blog">blog</a> -
<a href="https://wiki.postmarketos.org/">wiki</a>
</p>

View file

@ -1,77 +0,0 @@
<!doctype html>
<!-- Copyright 2021 Oliver Smith
SPDX-License-Identifier: GPL-3.0-or-later -->
<html>
<head>
<title>Welcome to Firefox on @DISTRO@</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
h1, h2 {
margin: 0;
padding: 0;
font-weight: normal;
color: #555;
}
h1 {
font-size: 1.8em;
margin-top: 40px;
text-align: center;
font-weight: bold;
}
h2 {
margin-top: 30px;
font-size: 1.5em;
}
p, ul{
margin-top:0;
line-height:180%;
}
a {
color:#009900;
background: #eeeeee;
border-bottom: 2px solid #009900;
text-decoration: none;
padding: 2px;
}
.distro-links {
text-align: center;
margin-top: 20px;
}
.text {
margin-top: 30px;
font-size: 1.0em;
}
.text a {
background: none;
text-decoration: underline;
border-bottom: none;
color: black;
padding: 0px;
}
@media (prefers-color-scheme: dark) {
body {
color: #f0f0f0;
background-color: #222;
}
a {
background: #111;
color: #0b0;
}
.text a {
color: white;
}
h1, h2 {
color: unset;
}
}
</style>
</head>
<body>
<h1>
Welcome to Firefox on @DISTRO@
</h1>

View file

@ -10,7 +10,7 @@
"OverridePostUpdatePage": "",
"Homepage": {
"URL": "file:///usr/share/mobile-config-firefox/home.html",
"URL": "about:home",
"Locked": false,
"StartPage": "homepage"
},