mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-14 03:30:17 +01:00
add internal pages to toolkit (browser)
This commit is contained in:
parent
68f575e480
commit
fcd7e664d2
@ -48,6 +48,12 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// RetroZilla-Specific Preferences
|
||||
pref("retrozilla.version", 220);
|
||||
pref("rzHome.autofocus", true);
|
||||
|
||||
|
||||
|
||||
pref("general.startup.browser", true);
|
||||
|
||||
pref("browser.chromeURL","chrome://browser/content/");
|
||||
@ -178,7 +184,7 @@ pref("browser.shell.checkDefaultBrowser", true);
|
||||
// 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session
|
||||
// The behavior of option 3 is detailed at: http://wiki.mozilla.org/Session_Restore
|
||||
pref("browser.startup.page", 1);
|
||||
pref("browser.startup.homepage", "resource:/browserconfig.properties");
|
||||
pref("browser.startup.homepage", "about:home");
|
||||
|
||||
pref("browser.cache.disk.capacity", 50000);
|
||||
pref("browser.enable_automatic_image_resizing", true);
|
||||
@ -237,7 +243,7 @@ pref("browser.search.update.log", false);
|
||||
pref("browser.search.updateinterval", 6);
|
||||
|
||||
// enable search suggestions by default
|
||||
pref("browser.search.suggest.enabled", true);
|
||||
pref("browser.search.suggest.enabled", false);
|
||||
|
||||
pref("browser.history.grouping", "day");
|
||||
pref("browser.sessionhistory.max_entries", 50);
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 26 KiB |
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 22 KiB |
@ -220,7 +220,14 @@
|
||||
<a href="" link="about:credits" onclick="visitLink(event);">&credit.contributors;</a>
|
||||
&credit.postthanks;
|
||||
</div>
|
||||
|
||||
<div class="creditsGroup">
|
||||
<ul>
|
||||
<li>rn10950</li>
|
||||
<li>Nathan Lineback</li>
|
||||
<li>The Crash Restore and <br /> Session Manager Developers</li>
|
||||
<li>roytam1</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="creditsGroup">
|
||||
<ul>
|
||||
<li>Josh Aas</li>
|
||||
|
@ -1 +1 @@
|
||||
2.0.0.2
|
||||
2.2
|
||||
|
@ -2,8 +2,5 @@
|
||||
<!ENTITY copyright "Credits">
|
||||
<!ENTITY aboutLink "< About &brandFullName;">
|
||||
<!ENTITY aboutVersion "version">
|
||||
<!ENTITY copyrightText "©1998-2007 Contributors. All Rights Reserved. Firefox and the
|
||||
Firefox logos are trademarks of the Mozilla Foundation. All rights
|
||||
reserved. Some trademark rights used under license from The
|
||||
Charlton Company.">
|
||||
<!ENTITY copyrightText "©1998-2018 Contributors. All Rights Reserved.">
|
||||
<!ENTITY cmdClose.macKey "W">
|
||||
|
82
toolkit/content/aboutChangelog.css
Normal file
82
toolkit/content/aboutChangelog.css
Normal file
@ -0,0 +1,82 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
#rzLogo {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
padding-top: 10px;
|
||||
}
|
||||
h2 {
|
||||
padding-top: 20px;
|
||||
}
|
||||
hr {
|
||||
margin-top: 20px;
|
||||
}
|
||||
p {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
/* about.css */
|
||||
|
||||
html {
|
||||
background: -moz-Dialog;
|
||||
padding: 0 1em;
|
||||
font: message-box;
|
||||
}
|
||||
|
||||
body {
|
||||
color: -moz-FieldText;
|
||||
position: relative;
|
||||
min-width: 500px;
|
||||
max-width: 50em;
|
||||
margin: 4em auto;
|
||||
border: 1px solid ThreeDShadow;
|
||||
-moz-border-radius: 10px;
|
||||
padding: 3em;
|
||||
-moz-padding-start: 30px;
|
||||
background: -moz-Field;
|
||||
}
|
||||
|
||||
.aboutPageWideContainer {
|
||||
max-width: 80%;
|
||||
}
|
||||
|
||||
#aboutLogoContainer {
|
||||
border: 1px solid ThreeDLightShadow;
|
||||
width: 300px;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#version {
|
||||
font-weight: bold;
|
||||
color: #909090;
|
||||
margin: -24px 0 9px 17px;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
-moz-margin-start: 1.5em;
|
||||
padding: 0;
|
||||
list-style: square;
|
||||
}
|
||||
|
||||
ul > li {
|
||||
margin-top: .5em;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.columns {
|
||||
-moz-column-width: 20em;
|
||||
-moz-column-gap: 3em;
|
||||
}
|
99
toolkit/content/aboutChangelog.html
Normal file
99
toolkit/content/aboutChangelog.html
Normal file
@ -0,0 +1,99 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<title>RetroZilla Changelog</title>
|
||||
<!--<link rel="stylesheet" type="text/css" href="aboutChangelog.css">-->
|
||||
<link rel="stylesheet" type="text/css" href="chrome://global/content/aboutChangelog.css">
|
||||
</head>
|
||||
<body>
|
||||
<img src="about:logopng" id="rzLogo">
|
||||
<!--<img src="https://www.mozilla.org/images/logo-star.gif" id="rzLogo">-->
|
||||
<!-- current release -->
|
||||
<h1>RetroZilla 2.1</h1>
|
||||
<h3>New Features</h3>
|
||||
<ul>
|
||||
<li>Updated default tab and security preferences</li>
|
||||
<li>Disabled sidebar opening by default when searching from address bar </li>
|
||||
<li>Added StartPage search engine</li>
|
||||
<li>"? <query>" from the urlbar initiates a Google Search</li>
|
||||
<li>"?sp <query>" from the urlbar initiates a StartPage Search</li>
|
||||
<li>RetroZilla Home checks to see if a newer build is available</li>
|
||||
<li>Various internal URLs have been updated to reflect current RetroZilla website</li>
|
||||
</ul>
|
||||
<h3>Bug Fixes</h3>
|
||||
<ul>
|
||||
<li>Copyright date on about:home updates dynamically.</li>
|
||||
</ul>
|
||||
<h3>Release Notes</h3>
|
||||
<p>
|
||||
Due to the long gap between the time RetroZilla was last worked on and now,
|
||||
We decided to release one last minor update before the work on Gecko begins.
|
||||
The new address bar search keywords may not work unless you have a new profile
|
||||
created after the release of RetroZilla 2.1. We also added an update notifier
|
||||
on the RetroZilla home page (about:home) to notify users that don't follow the
|
||||
MSFN threads that a new version is out.
|
||||
</p>
|
||||
<!-- past releases -->
|
||||
<hr>
|
||||
<h2>RetroZilla 2.0</h2>
|
||||
<h3>New Features</h3>
|
||||
<ul>
|
||||
<li>New Home Page: about:home.</li>
|
||||
<li>about:changelog.</li>
|
||||
<li>Session Manager and Crash Restore system</li>
|
||||
<li>Updated internal URLs to reflect new website</li>
|
||||
<li>Added Get Extensions link to Tools menu and Contribute link to Help menu</li>
|
||||
</ul>
|
||||
<h3>Bug Fixes</h3>
|
||||
<ul>
|
||||
<li>More "M" logos replaced.</li>
|
||||
</ul>
|
||||
<h3>Release Notes</h3>
|
||||
<p>
|
||||
This should be our last major features-only and rebrand release. Starting with 3.0, we will upgrade
|
||||
the Gecko core to be more compliant for the modern web. We would like to thank the developers of the
|
||||
Crash Recovery and Session Manager extensions for a platform to build on for our new Session Restore
|
||||
feature. Users who already have any these extensions installed are advised to remove them.
|
||||
</p>
|
||||
<!-- -->
|
||||
<hr>
|
||||
<h2>RetroZilla 1.1</h2>
|
||||
<h3>New Features</h3>
|
||||
<ul>
|
||||
<li>The rebrand from SeaMonkey to RetroZilla was finished.</li>
|
||||
<li>New throbber with the Mozilla "M" logo changed to "RZ" for RetroZilla.</li>
|
||||
<li>Windows 9x and NT 4 now display a proper OS string in the user agent.</li>
|
||||
<li>RetroZilla now has its own profile folder inside of the application data directory. Old Mozilla Suite/SeaMonkey
|
||||
1.x profiles will no longer work.</li>
|
||||
<li>New about:credits page featuring both RetroZilla and Mozilla contributors.</li>
|
||||
</ul>
|
||||
<h3>Bug Fixes</h3>
|
||||
<ul>
|
||||
<li>A slight bug causing some elements to not display properly was fixed.</li>
|
||||
<li>Installer works properly on Windows NT.</li>
|
||||
</ul>
|
||||
<h3>Release Notes</h3>
|
||||
<p>
|
||||
Our plan for the future is to ship UX-enhancing features in 2.0, and then start backporting CSS changes in
|
||||
3.0, so the RetroZilla version numbers will match the Firefox version number that has CSS parity with RetroZilla.
|
||||
</p>
|
||||
<!-- -->
|
||||
<h2>RetroZilla 1.0</h2>
|
||||
<h3>New Features</h3>
|
||||
<ul>
|
||||
<li>Support for some HTML5 elements was added.</li>
|
||||
</ul>
|
||||
<h3>Bug Fixes</h3>
|
||||
<ul>
|
||||
<li>A HTTPS bug was fixed</li>
|
||||
</ul>
|
||||
<h3>Release Notes</h3>
|
||||
<p>
|
||||
This is the first release of RetroZilla, mostly just a rebrand of SeaMonkey 1.1.19. (Firefox 2.0.0.2)
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
48
toolkit/content/aboutHome.css
Normal file
48
toolkit/content/aboutHome.css
Normal file
@ -0,0 +1,48 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
body, html {
|
||||
border: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
#rzLogo {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 60px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
#searchContainer {
|
||||
width: 60%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
#rzSearch {
|
||||
width: 70%;
|
||||
}
|
||||
#rzFooter {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
#rzFooterText {
|
||||
text-align: center;
|
||||
}
|
||||
/* updater styles */
|
||||
#updateNotifier {
|
||||
display: none;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.showUpdate {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
a:link { color: blue; }
|
||||
a:hover { color: blue; }
|
||||
a:active { color: blue; }
|
||||
a:visited { color: blue; }
|
38
toolkit/content/aboutHome.html
Normal file
38
toolkit/content/aboutHome.html
Normal file
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>RetroZilla Home</title>
|
||||
<link rel="stylesheet" type="text/css" href="chrome://global/content/aboutHome.css">
|
||||
<!--<script src="aboutHome.js"></script>-->
|
||||
<script src="chrome://global/content/aboutHome.js" type="application/x-javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="logoContainer">
|
||||
<img src="chrome://global/content/logo.png" id="rzLogo" alt="RetroZilla Logo">
|
||||
</div>
|
||||
<div id="searchContainer">
|
||||
<!-- add input box with a keypress event for the enter key to trigger submit button -->
|
||||
<input type="text" name="rzSearch" id="rzSearch" onkeydown = "if (event.keyCode == 13)
|
||||
document.getElementById('rzSearchSubmit').click()">
|
||||
<button id="rzSearchSubmit" onClick="rzSearch();">Search</button>
|
||||
</div>
|
||||
<div id="rzFooter">
|
||||
<p id="updateNotifier">
|
||||
<a href="https://github.com/rn10950/retrozilla/releases/latest">
|
||||
New RetroZilla Version Available
|
||||
</a>
|
||||
</p>
|
||||
<p id="rzFooterText">
|
||||
<a href="https://rn10950.github.io/RetroZillaWeb/" class="rzFooterlink">
|
||||
RetroZilla
|
||||
</a>
|
||||
-
|
||||
Copyright 1998-<span id="currentYear"></span>,
|
||||
<a href="about:credits" class="rzFooterLink">
|
||||
Contributors
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
77
toolkit/content/aboutHome.js
Normal file
77
toolkit/content/aboutHome.js
Normal file
@ -0,0 +1,77 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// about:home JS
|
||||
|
||||
// XPCOM preferences integration
|
||||
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
|
||||
|
||||
var aboutHomeAutofocus = prefs.getBoolPref("rzHome.autofocus");
|
||||
var searchEngineURL = prefs.getCharPref("keyword.URL");
|
||||
var currentUsedVersion = prefs.getIntPref("retrozilla.version");
|
||||
|
||||
//check to see if custom search pref url exists
|
||||
var prefServiceBranch = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefService).getBranch("");
|
||||
if(prefServiceBranch.getPrefType('rzHome.customsearch')){
|
||||
//key exist!
|
||||
var searchEngineURL = prefs.getCharPref("rzHome.customsearch");
|
||||
} else {
|
||||
// use Google
|
||||
var searchEngineURL = "http://www.google.com/search?q=";
|
||||
}
|
||||
|
||||
// autofocus function
|
||||
function autoFocus() {
|
||||
document.getElementById("rzSearch").focus();
|
||||
}
|
||||
|
||||
// update checker function
|
||||
function checkForUpdate() {
|
||||
var img = document.createElement("img");
|
||||
img.onload = function() {
|
||||
// connected
|
||||
|
||||
// add JS file with newest version # to page
|
||||
var h = document.getElementsByTagName('head').item(0);
|
||||
var newScript = document.createElement('script');
|
||||
newScript.src = "https://raw.githubusercontent.com/rn10950/RetroZilla/master/update/currentReleaseVersion.js";
|
||||
h.appendChild(newScript);
|
||||
// wait for script to load
|
||||
setTimeout(function () {
|
||||
//alert(currentReleaseVersion()); // used for debug
|
||||
//var currentUsedVersion = 1; // used for debug
|
||||
if(currentUsedVersion < currentReleaseVersion()) {
|
||||
// used version older or equal
|
||||
//alert("using older version"); // used for debug
|
||||
document.getElementById("updateNotifier").setAttribute("class", "showUpdate");
|
||||
}
|
||||
}, 500);
|
||||
};
|
||||
img.onerror = function() {
|
||||
// not connected
|
||||
};
|
||||
img.src = "https://raw.githubusercontent.com/rn10950/RetroZilla/master/update/ping.gif";
|
||||
}
|
||||
|
||||
// onload function (used to allow for autofocus)
|
||||
window.onload = function() {
|
||||
if (aboutHomeAutofocus == true) {
|
||||
autoFocus();
|
||||
}
|
||||
//alert(currentUsedVersion);
|
||||
// set current year
|
||||
var d = new Date();
|
||||
var cYear = d.getFullYear();
|
||||
document.getElementById("currentYear").innerHTML = cYear;
|
||||
checkForUpdate();
|
||||
};
|
||||
|
||||
// function that runs when the "Search" button is clicked
|
||||
function rzSearch() {
|
||||
var searchQuery = document.getElementById("rzSearch").value;
|
||||
var searchURL = searchEngineURL + searchQuery;
|
||||
//alert("Location: " + searchURL); // for debug purposes
|
||||
window.location.replace(searchURL);
|
||||
}
|
@ -2,6 +2,12 @@ toolkit.jar:
|
||||
% content global %content/global/ xpcnativewrappers=yes
|
||||
% content global-platform %content/global-platform/ platform xpcnativewrappers=yes
|
||||
% content global-region %content/global-region/ xpcnativewrappers=yes
|
||||
content/global/aboutHome.js (aboutHome.js)
|
||||
content/global/aboutHome.css (aboutHome.css)
|
||||
content/global/aboutHome.html (aboutHome.html)
|
||||
content/global/logo.png (logo.png)
|
||||
content/global/aboutChangelog.html (aboutChangelog.html)
|
||||
content/global/aboutChangelog.css (aboutChangelog.css)
|
||||
content/global/XPCNativeWrapper.js (XPCNativeWrapper.js)
|
||||
* content/global/xul.css (xul.css)
|
||||
* content/global/about.xhtml (about.xhtml)
|
||||
|
BIN
toolkit/content/logo.png
Normal file
BIN
toolkit/content/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@ -24,7 +24,7 @@
|
||||
</a>
|
||||
</p>
|
||||
<p id="rzFooterText">
|
||||
<a href="http://retrozilla.no-ip.org" class="rzFooterlink">
|
||||
<a href="https://rn10950.github.io/RetroZillaWeb/" class="rzFooterlink">
|
||||
RetroZilla
|
||||
</a>
|
||||
-
|
||||
|
Loading…
Reference in New Issue
Block a user