Remove most mentions of pmOS / make them optional
This commit is contained in:
parent
197aa05da3
commit
c1eafe0f8f
6 changed files with 68 additions and 66 deletions
8
Makefile
8
Makefile
|
@ -1,4 +1,6 @@
|
||||||
USERCHROME_FILES := root.css urlbar.css appMenu.css
|
USERCHROME_FILES := root.css urlbar.css appMenu.css
|
||||||
|
HOMEPAGE_FILES := head.html distro_links.html bottom.html
|
||||||
|
DISTRO := postmarketOS
|
||||||
|
|
||||||
all: out/home.html out/policies.json out/prefs.js out/userChrome.css
|
all: out/home.html out/policies.json out/prefs.js out/userChrome.css
|
||||||
|
|
||||||
|
@ -7,8 +9,10 @@ clean:
|
||||||
out:
|
out:
|
||||||
mkdir out
|
mkdir out
|
||||||
|
|
||||||
out/home.html: src/home.html out
|
out/home.html: src/homepage/*.html out
|
||||||
cat $< > $@
|
( cd src/homepage; cat $(HOMEPAGE_FILES) ) > $@.temp
|
||||||
|
sed "s/@DISTRO@/$(DISTRO)/g" "$@.temp" > "$@"
|
||||||
|
rm "$@.temp"
|
||||||
|
|
||||||
out/policies.json: src/policies.json out
|
out/policies.json: src/policies.json out
|
||||||
cat $< > $@
|
cat $< > $@
|
||||||
|
|
|
@ -1,64 +1,3 @@
|
||||||
<!doctype html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Welcome to Firefox on postmarketOS</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;
|
|
||||||
}
|
|
||||||
.top-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;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
Welcome to Firefox on postmarketOS
|
|
||||||
</h1>
|
|
||||||
<p class="top-links">
|
|
||||||
<a href="https://postmarketos.org/blog">blog</a> -
|
|
||||||
<a href="https://wiki.postmarketos.org/">wiki</a>
|
|
||||||
</p>
|
|
||||||
<p class="text">
|
<p class="text">
|
||||||
This is the desktop version of Firefox, but with a
|
This is the desktop version of Firefox, but with a
|
||||||
<a href="https://postmarketos.org/firefox-cfg">
|
<a href="https://postmarketos.org/firefox-cfg">
|
4
src/homepage/distro_links.html
Normal file
4
src/homepage/distro_links.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<p class="distro-links">
|
||||||
|
<a href="https://postmarketos.org/blog">blog</a> -
|
||||||
|
<a href="https://wiki.postmarketos.org/">wiki</a>
|
||||||
|
</p>
|
57
src/homepage/head.html
Normal file
57
src/homepage/head.html
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
<!doctype html>
|
||||||
|
<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;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
Welcome to Firefox on @DISTRO@
|
||||||
|
</h1>
|
|
@ -11,7 +11,7 @@
|
||||||
"OverridePostUpdatePage": "",
|
"OverridePostUpdatePage": "",
|
||||||
|
|
||||||
"Homepage": {
|
"Homepage": {
|
||||||
"URL": "file:///usr/share/postmarketos-config-firefox/home.html",
|
"URL": "file:///usr/share/mobile-config-firefox/home.html",
|
||||||
"Locked": false,
|
"Locked": false,
|
||||||
"StartPage": "homepage"
|
"StartPage": "homepage"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/** Firefox tweaks for postmarketOS **/
|
|
||||||
|
|
||||||
// Select a mobile user agent for firefox (same as tor browser on android)
|
// 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');
|
pref('general.useragent.override', 'Mozilla/5.0 (Android 6.0; Mobile; rv:68.0) Gecko/20100101 Firefox/68.0');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue