diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-02-12 13:57:21 -0600 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-02-12 13:57:21 -0600 |
commit | ba7d67bb0711c9066c71bd33e55d9a5d2f9b2cbf (patch) | |
tree | a5c0cfad71c17114c78d8a7d1f31112eb53896df /other-licenses/branding/palemoon/shared | |
parent | c054e324210895e7e2c5b3e84437cba43f201ec8 (diff) | |
download | palemoon-gre-ba7d67bb0711c9066c71bd33e55d9a5d2f9b2cbf.tar.gz |
Lay down Pale Moon 30
Diffstat (limited to 'other-licenses/branding/palemoon/shared')
-rw-r--r-- | other-licenses/branding/palemoon/shared/branding.mozbuild | 48 | ||||
-rw-r--r-- | other-licenses/branding/palemoon/shared/license.txt | 11 | ||||
-rw-r--r-- | other-licenses/branding/palemoon/shared/locales/brand.dtd | 4 | ||||
-rw-r--r-- | other-licenses/branding/palemoon/shared/locales/brand.properties | 5 | ||||
-rw-r--r-- | other-licenses/branding/palemoon/shared/locales/browserconfig.properties | 3 | ||||
-rw-r--r-- | other-licenses/branding/palemoon/shared/locales/syncBrand.dtd | 6 | ||||
-rw-r--r-- | other-licenses/branding/palemoon/shared/newtab.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | other-licenses/branding/palemoon/shared/newwindow.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | other-licenses/branding/palemoon/shared/pbmode.ico | bin | 0 -> 1150 bytes | |||
-rw-r--r-- | other-licenses/branding/palemoon/shared/pngout.exe | bin | 0 -> 38912 bytes | |||
-rw-r--r-- | other-licenses/branding/palemoon/shared/pref/preferences.inc | 91 | ||||
-rw-r--r-- | other-licenses/branding/palemoon/shared/pref/uaoverrides.inc | 76 |
12 files changed, 244 insertions, 0 deletions
diff --git a/other-licenses/branding/palemoon/shared/branding.mozbuild b/other-licenses/branding/palemoon/shared/branding.mozbuild new file mode 100644 index 000000000..4d1bf86d1 --- /dev/null +++ b/other-licenses/branding/palemoon/shared/branding.mozbuild @@ -0,0 +1,48 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- + +@template +def ApplicationBranding(): + JS_PREFERENCE_PP_FILES += [ + 'pref/palemoon-branding.js', + ] + + if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': + FINAL_TARGET_FILES += [ + 'palemoon.VisualElementsManifest.xml', + ] + FINAL_TARGET_FILES.VisualElements += [ + 'VisualElements_150.png', + 'VisualElements_70.png', + ] + BRANDING_FILES += [ + '../shared/newtab.ico', + '../shared/newwindow.ico', + '../shared/pbmode.ico', + 'appname.bmp', + 'branding.nsi', + 'document.ico', + 'firefox.ico', + 'wizHeader.bmp', + 'wizHeaderRTL.bmp', + 'wizWatermark.bmp', + ] + elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']: + BRANDING_FILES += [ + 'default16.png', + 'default32.png', + 'default48.png', + 'mozicon128.png', + ] + FINAL_TARGET_FILES.icons += ['mozicon128.png'] + FINAL_TARGET_FILES.chrome.icons.default += [ + 'default16.png', + 'default32.png', + 'default48.png', + ] + + BRANDING_FILES += ['../shared/license.txt'] + + DEFINES['MOZ_APP_VERSION'] = CONFIG['MOZ_APP_VERSION'] + DEFINES['MOZ_BRANDING_DIRECTORY'] = CONFIG['MOZ_BRANDING_DIRECTORY'] + DEFINES['MOZILLA_UAVERSION_U'] = CONFIG['MOZILLA_UAVERSION_U'] + DEFINES['MOZILLA_COMPATVERSION_U'] = "68.9" diff --git a/other-licenses/branding/palemoon/shared/license.txt b/other-licenses/branding/palemoon/shared/license.txt new file mode 100644 index 000000000..aef2b57a6 --- /dev/null +++ b/other-licenses/branding/palemoon/shared/license.txt @@ -0,0 +1,11 @@ +THE PALE MOON BROWSER IS SUBJECT TO THE FOLLOWING: + +* The Source Code Form, unless otherwise indicated, is licensed under the Mozilla Public License 2.0 (https://www.mozilla.org/en-US/MPL/2.0/) and may be obtained under Section 3.2 (a) by navigating to http://www.palemoon.org/sourcecode.shtml + +* You may redistribute this Executable Form according to the Pale Moon Redistribution License (http://www.palemoon.org/redist.shtml) as provided by MPL Section 3.2 (b). + +* Pale Moon, GRE, Goanna Rendering Engine, Goanna Runtime Environment, and associated branding artwork, including logos and wordmarks, are copyright and/or trademarks of Moonchild Productions. + +* Any other intellectual property contained herein are copyright and/or trademarks of their respective owners. + +For more information on specific licensing terms please navigate to: http://www.palemoon.org/licensing.shtml
\ No newline at end of file diff --git a/other-licenses/branding/palemoon/shared/locales/brand.dtd b/other-licenses/branding/palemoon/shared/locales/brand.dtd new file mode 100644 index 000000000..9a260257a --- /dev/null +++ b/other-licenses/branding/palemoon/shared/locales/brand.dtd @@ -0,0 +1,4 @@ +<!ENTITY brandShortName "Pale Moon"> +<!ENTITY brandFullName "Pale Moon"> +<!ENTITY vendorShortName "Moonchild"> +<!ENTITY trademarkInfo.part1 "The Pale Moon logo and project names are trademarks of Moonchild Productions (M.C. Straver BASc). All rights reserved."> diff --git a/other-licenses/branding/palemoon/shared/locales/brand.properties b/other-licenses/branding/palemoon/shared/locales/brand.properties new file mode 100644 index 000000000..7d4b46954 --- /dev/null +++ b/other-licenses/branding/palemoon/shared/locales/brand.properties @@ -0,0 +1,5 @@ +brandShortName=Pale Moon +brandFullName=Pale Moon +vendorShortName=Moonchild + +syncBrandShortName=Sync diff --git a/other-licenses/branding/palemoon/shared/locales/browserconfig.properties b/other-licenses/branding/palemoon/shared/locales/browserconfig.properties new file mode 100644 index 000000000..306ae5ee1 --- /dev/null +++ b/other-licenses/branding/palemoon/shared/locales/browserconfig.properties @@ -0,0 +1,3 @@ +# Do NOT localize or otherwise change these values +browser.startup.homepage=http://start.palemoon.org/ +browser.startup.homepage_reset=http://start.palemoon.org/ diff --git a/other-licenses/branding/palemoon/shared/locales/syncBrand.dtd b/other-licenses/branding/palemoon/shared/locales/syncBrand.dtd new file mode 100644 index 000000000..bc4d1b3e0 --- /dev/null +++ b/other-licenses/branding/palemoon/shared/locales/syncBrand.dtd @@ -0,0 +1,6 @@ +<!-- 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/. --> + +<!ENTITY syncBrand.shortName.label "Sync"> +<!ENTITY syncBrand.fullName.label "Pale Moon Sync"> diff --git a/other-licenses/branding/palemoon/shared/newtab.ico b/other-licenses/branding/palemoon/shared/newtab.ico Binary files differnew file mode 100644 index 000000000..6e3fee622 --- /dev/null +++ b/other-licenses/branding/palemoon/shared/newtab.ico diff --git a/other-licenses/branding/palemoon/shared/newwindow.ico b/other-licenses/branding/palemoon/shared/newwindow.ico Binary files differnew file mode 100644 index 000000000..a30093564 --- /dev/null +++ b/other-licenses/branding/palemoon/shared/newwindow.ico diff --git a/other-licenses/branding/palemoon/shared/pbmode.ico b/other-licenses/branding/palemoon/shared/pbmode.ico Binary files differnew file mode 100644 index 000000000..d21799475 --- /dev/null +++ b/other-licenses/branding/palemoon/shared/pbmode.ico diff --git a/other-licenses/branding/palemoon/shared/pngout.exe b/other-licenses/branding/palemoon/shared/pngout.exe Binary files differnew file mode 100644 index 000000000..3cda5987d --- /dev/null +++ b/other-licenses/branding/palemoon/shared/pngout.exe diff --git a/other-licenses/branding/palemoon/shared/pref/preferences.inc b/other-licenses/branding/palemoon/shared/pref/preferences.inc new file mode 100644 index 000000000..fe1a2f003 --- /dev/null +++ b/other-licenses/branding/palemoon/shared/pref/preferences.inc @@ -0,0 +1,91 @@ +// ===| General |============================================================== + +pref("startup.homepage_welcome_url","http://www.palemoon.org/firstrun.shtml"); + +pref("app.vendorURL", "http://www.palemoon.org/"); + + +// User Interface +pref("browser.identity.ssl_domain_display", 1); //show domain verified SSL (blue) + +// ============================================================================ + +// ===| Application Update Service |=========================================== + +// The time interval between the downloading of mar file chunks in the +// background (in seconds) +pref("app.update.download.backgroundInterval", 600); + +// Give the user x seconds to react before showing the big UI. default=48 hours +pref("app.update.promptWaitTime", 172800); + +// ============================================================================ + +// ===| Add-ons Manager |====================================================== + +// Add-on window fixes +pref("extensions.getMoreThemesURL", "https://addons.palemoon.org/themes/"); + +pref("extensions.update.autoUpdateDefault", true); // Automatically update extensions by default +pref("extensions.getAddons.maxResults", 10); +pref("extensions.getAddons.cache.enabled", false); + +// ============================================================================ + +// ===| DOM |================================================================== + +// Set max script runtimes to sane values +pref("dom.max_chrome_script_run_time", 90); //Some addons need ample time! +pref("dom.max_script_run_time", 20); //Should be plenty for a page script to do what it needs + +// ============================================================================ + +// ===| Plugins |============================================================== + +pref("plugin.default.state", 2); //Allow plugins to run by default +pref("plugin.expose_full_path", true); //Security: expose the full path to the plugin +pref("dom.ipc.plugins.timeoutSecs", 20); + +// ============================================================================ + +// ===| Graphics |============================================================= + +pref("nglayout.initialpaint.delay", 300); + +// ============================================================================ + +// ===| Image |================================================================ + +pref("image.mem.max_ms_before_yield", 50); +pref("image.mem.decode_bytes_at_a_time", 65536); //larger chunks + +// ============================================================================ + +// ===| Sync |================================================================= + +// Pale Moon Sync server URLs +pref("services.sync.serverURL","https://pmsync.palemoon.org/sync/index.php/"); +pref("services.sync.jpake.serverURL","https://keyserver.palemoon.org/"); +pref("services.sync.termsURL", "http://www.palemoon.org/sync/terms.shtml"); +pref("services.sync.privacyURL", "http://www.palemoon.org/sync/privacy.shtml"); +pref("services.sync.statusURL", "https://pmsync.palemoon.org/status/"); +pref("services.sync.syncKeyHelpURL", "http://www.palemoon.org/sync/help/recoverykey.shtml"); + +pref("services.sync.APILevel", 1); // FSyncMS doesn't support 'info/configuration' requests + +// ============================================================================ + +// ===| Misc. |================================================================ + +// Make sure we shortcut out of a11y to save walking unnecessary code +pref("accessibility.force_disabled", 1); + +// ============================================================================ + +// ===| DevTools |============================================================= + +// Number of usages of the web console or scratchpad. +// If this is less than 5, then pasting code into the web console or scratchpad is disabled +pref("devtools.selfxss.count", 100); + +// ============================================================================ diff --git a/other-licenses/branding/palemoon/shared/pref/uaoverrides.inc b/other-licenses/branding/palemoon/shared/pref/uaoverrides.inc new file mode 100644 index 000000000..70c883844 --- /dev/null +++ b/other-licenses/branding/palemoon/shared/pref/uaoverrides.inc @@ -0,0 +1,76 @@ +// ===| Site Specific User Agent Overrides |===================================
+
+#define GUAO_PREF general.useragent.override
+
+#define GRE_VERSION @MOZILLA_UAVERSION_U@
+#define GRE_VERSION_SLICE Goanna/@GRE_VERSION@
+#define GRE_DATE_SLICE Goanna/20170101
+#define PM_SLICE PaleMoon/@MOZ_APP_VERSION@
+
+#define GK_VERSION @MOZILLA_COMPATVERSION_U@
+#define GK_SLICE Gecko/20100101
+#define FX_SLICE Firefox/@GK_VERSION@
+
+// %OS_SLICE% macro is resolved at runtime, see MoonchildProductions/UXP/issues/1473
+
+// Special-case AMO
+// We send the native UA slice now, since they no longer offer any compatible extensions for us.
+// This will result in an "only with Firefox" message which suits us fine, because it's the truth.
+pref("@GUAO_PREF@.addons.mozilla.org","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+
+// Required for domains that are unresponsive to requests from users (or likely to be)
+pref("@GUAO_PREF@.aol.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
+pref("@GUAO_PREF@.bing.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
+pref("@GUAO_PREF@.chase.com","Mozilla/5.0 (%OS_SLICE% rv:79.0) @GK_SLICE@ Firefox/79.0");
+pref("@GUAO_PREF@.dropbox.com","Mozilla/5.0 (%OS_SLICE% rv:99.9) @GK_SLICE@ Firefox/99.9 (Pale Moon)");
+pref("@GUAO_PREF@.google.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0 @PM_SLICE@");
+pref("@GUAO_PREF@.googlevideos.com","Mozilla/5.0 (%OS_SLICE% rv:38.9) @GK_SLICE@ @GRE_VERSION_SLICE@ Firefox/38.9 @PM_SLICE@");
+pref("@GUAO_PREF@.gstatic.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0 @PM_SLICE@");
+pref("@GUAO_PREF@.kroger.com","Mozilla/5.0 (%OS_SLICE% rv:86.0) @GK_SLICE@ Firefox/86.0 (Pale Moon)");
+pref("@GUAO_PREF@.live.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
+pref("@GUAO_PREF@.msn.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
+pref("@GUAO_PREF@.netteller.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");
+pref("@GUAO_PREF@.patientaccess.com","Mozilla/5.0 (%OS_SLICE% rv:60.0) @GK_SLICE@ Firefox/60.0 @PM_SLICE@");
+pref("@GUAO_PREF@.outlook.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
+pref("@GUAO_PREF@.web.de","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
+pref("@GUAO_PREF@.yahoo.com","Mozilla/5.0 (%OS_SLICE% rv:99.9) @GK_SLICE@ Firefox/99.9");
+pref("@GUAO_PREF@.calendar.yahoo.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
+
+// For Amazon Prime videos
+pref("@GUAO_PREF@.www.amazon.com","Mozilla/5.0 (%OS_SLICE% rv:45.9) @GK_SLICE@ Firefox/45.9 (Pale Moon)");
+// Soundcloud uses Firefox-exclusive combinations of code. Never pass Firefox slice.
+pref("@GUAO_PREF@.soundcloud.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+// Daily motion only likes strict Firefox UAs
+pref("@GUAO_PREF@.dailymotion.com","Mozilla/5.0 (%OS_SLICE% rv:52.0) @GK_SLICE@ Firefox/52.0");
+pref("@GUAO_PREF@.players.brightcove.net","Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko");
+
+// The following requires native mode. Or it blocks.. "too old firefox", breakage, etc.
+pref("@GUAO_PREF@.deviantart.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.deviantart.net","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.altibox.dk","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.altibox.no","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.firefox.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.mozilla.org","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.mozilla.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.github.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.spotify.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+pref("@GUAO_PREF@.twitter.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
+
+// UA-Sniffing domains below have indicated no interest in supporting Pale Moon (BOO!)
+pref("@GUAO_PREF@.humblebundle.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
+pref("@GUAO_PREF@.privat24.ua","Mozilla/5.0 (%OS_SLICE% rv:38.0) @GK_SLICE@ Firefox/38.0");
+pref("@GUAO_PREF@.citi.com","Mozilla/5.0 (%OS_SLICE% rv:88.0) @GK_SLICE@ Firefox/88.0 (Pale Moon)");
+pref("@GUAO_PREF@.netflix.com","Mozilla/5.0 (Windows NT 6.1; rv:45.9) @GK_SLICE@ Firefox/45.9");
+pref("@GUAO_PREF@.netflximg.net","Mozilla/5.0 (Windows NT 6.1; rv:45.9) @GK_SLICE@ Firefox/45.9");
+
+// UA-sniffing domains that are "app/vendor-specific" and do not like Pale Moon
+pref("@GUAO_PREF@.web.whatsapp.com","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36");
+pref("@GUAO_PREF@.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:60.0) @GK_SLICE@ Firefox/60.0");
+pref("@GUAO_PREF@.studio.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:68.0) @GK_SLICE@ @GRE_VERSION_SLICE@ Firefox/68.0 @PM_SLICE@");
+pref("@GUAO_PREF@.gaming.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0");
+
+// The following domains do not like the Goanna slice
+pref("@GUAO_PREF@.hitbox.tv","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");
+pref("@GUAO_PREF@.yuku.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ @PM_SLICE@");
+
+// ============================================================================
|