From a1be17c1cea81ebb1e8b131a662c698d78f3f7f2 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 4 Jun 2018 13:17:38 +0200 Subject: Issue #303 Part 1: Move basilisk files from /browser to /application/basilisk --- .../basilisk/branding/shared/uaoverrides.inc | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 application/basilisk/branding/shared/uaoverrides.inc (limited to 'application/basilisk/branding/shared/uaoverrides.inc') diff --git a/application/basilisk/branding/shared/uaoverrides.inc b/application/basilisk/branding/shared/uaoverrides.inc new file mode 100644 index 000000000..f7f7fafa3 --- /dev/null +++ b/application/basilisk/branding/shared/uaoverrides.inc @@ -0,0 +1,42 @@ +#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 APP_SLICE Basilisk/@MOZ_APP_VERSION@ + +#define GK_VERSION 52.9 +#define GK_SLICE Gecko/20100101 +#define FX_SLICE Firefox/@GK_VERSION@ + +#ifdef XP_UNIX +#ifndef XP_MACOSX +#define OS_SLICE X11; Linux x86_64; +#else +#define OS_SLICE Macintosh; Intel Mac OS X 10.11; +#endif +#else +#define OS_SLICE Windows NT 6.1; WOW64; +#endif + +// Mozilla overrides +pref("@GUAO_PREF@.accounts.firefox.com", "Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@"); +pref("@GUAO_PREF@.addons.mozilla.org", "Mozilla/5.0 (@OS_SLICE@ rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@"); + +// Required for domains that have proven unresponsive to requests from users + +// The never-ending Facebook debacle... + +// UA-Sniffing domains below are pending responses from their operators - temp workaround +// 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"); + +// The following requires native mode. Or it blocks.. "too old firefox", breakage, etc. + +// UA-Sniffing domains below have indicated no interest in supporting Pale Moon (BOO!) + +// UA-sniffing domains that are "app/vendor-specific" and do not like Pale Moon + +// 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@ @APP_SLICE@"); -- cgit v1.2.3