2021-01-10 18:18:42 +00:00
#define GUAO_PREF general.useragent.override
2022-10-26 12:26:03 -04:00
#define UXP_VERSION @MOZILLA_UAVERSION_U@
#define UXP_VERSION_SLICE Goanna/@UXP_VERSION@
#define UXP_DATE_SLICE Goanna/20170101
2021-01-10 18:18:42 +00:00
#define APP_SLICE Basilisk/@MOZ_APP_VERSION@
#define GK_VERSION 52.9
#define GK_SLICE Gecko/20100101
#define FX_SLICE Firefox/@GK_VERSION@
2023-10-23 12:53:49 -04:00
#define PALE_MOON_VERSION 32.4.1
2022-10-26 12:26:03 -04:00
#define PALE_MOON_SLICE PaleMoon/@PALE_MOON_VERSION@
2022-08-05 20:13:58 +08:00
// %OS_SLICE% macro is resolved at runtime, see MoonchildProductions/UXP/issues/1473
2021-01-10 18:18:42 +00:00
2025-09-27 21:04:30 -07:00
// Special-case Cuckflare
// With Lun3r useragent they send a challenge that fucks up the browser JS system. So we fake PM.
pref ( " @GUAO_PREF@.cloudflare.com " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @PALE_MOON_SLICE@ " );
2022-08-05 20:13:58 +08:00
// 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.
2022-10-26 12:26:03 -04:00
pref ( " @GUAO_PREF@.addons.mozilla.org " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
2021-01-10 18:18:42 +00:00
2022-08-05 20:13:58 +08:00
// 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@ (Basilisk) " );
pref ( " @GUAO_PREF@.bing.com " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Basilisk) " );
2023-08-04 21:14:40 -04:00
pref ( " @GUAO_PREF@.chase.com " , " Mozilla/5.0 (%OS_SLICE% rv:102.0) @GK_SLICE@ Firefox/102.0 " );
2022-08-05 20:13:58 +08:00
pref ( " @GUAO_PREF@.dropbox.com " , " Mozilla/5.0 (%OS_SLICE% rv:68.9) @GK_SLICE@ Firefox/68.9 (Basilisk) " );
2023-03-11 15:58:27 -05:00
pref ( " @GUAO_PREF@.instagram.com " , " Mozilla/5.0 (%OS_SLICE% rv:68.0) @GK_SLICE@ Firefox/68.0 " );
2021-01-19 16:54:53 +00:00
pref ( " @GUAO_PREF@.google.com " , " Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0 @APP_SLICE@ " );
2022-10-26 12:26:03 -04:00
pref ( " @GUAO_PREF@.googlevideos.com " , " Mozilla/5.0 (%OS_SLICE% rv:38.9) @GK_SLICE@ @UXP_VERSION_SLICE@ Firefox/38.9 @APP_SLICE@ " );
2022-08-05 20:13:58 +08:00
pref ( " @GUAO_PREF@.gstatic.com " , " Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0 @APP_SLICE@ " );
pref ( " @GUAO_PREF@.kroger.com " , " Mozilla/5.0 (%OS_SLICE% rv:86.0) @GK_SLICE@ Firefox/86.0 (Basilisk) " );
pref ( " @GUAO_PREF@.live.com " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Basilisk) " );
pref ( " @GUAO_PREF@.msn.com " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Basilisk) " );
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 @APP_SLICE@ " );
pref ( " @GUAO_PREF@.outlook.com " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Basilisk) " );
pref ( " @GUAO_PREF@.vimeo.com " , " Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) EdgiOS/102.0.1245.30 Version/15.0 Mobile/15E148 Safari/604.1 " );
pref ( " @GUAO_PREF@.web.de " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Basilisk) " );
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@ (Basilisk) " );
2021-01-10 18:18:42 +00:00
2022-08-05 20:13:58 +08:00
// Soundcloud uses Firefox-exclusive combinations of code. Never pass Firefox slice.
2022-10-26 12:26:03 -04:00
pref ( " @GUAO_PREF@.soundcloud.com " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
2022-08-05 20:13:58 +08:00
pref ( " @GUAO_PREF@.players.brightcove.net " , " Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko " );
// Google fonts serves physically different fonts to later Firefox versions that render incorrectly unless on Gecko
pref ( " @GUAO_PREF@.fonts.googleapis.com " , " Mozilla/5.0 (%OS_SLICE% rv:61.9) Gecko/20100101 Firefox/61.9 " );
2024-01-21 15:52:58 -05:00
pref ( " @GUAO_PREF@.fonts-api.wp.com " , " Mozilla/5.0 (%OS_SLICE% rv:61.9) Gecko/20100101 Firefox/61.9 " );
2022-08-05 20:13:58 +08:00
// The following requires native mode. Or it blocks.. "too old firefox", breakage, etc.
2022-10-26 12:26:03 -04:00
pref ( " @GUAO_PREF@.deviantart.com " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
pref ( " @GUAO_PREF@.deviantart.net " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
pref ( " @GUAO_PREF@.altibox.dk " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
pref ( " @GUAO_PREF@.altibox.no " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
pref ( " @GUAO_PREF@.firefox.com " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
pref ( " @GUAO_PREF@.mozilla.org " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
pref ( " @GUAO_PREF@.mozilla.com " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
pref ( " @GUAO_PREF@.github.com " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
pref ( " @GUAO_PREF@.zoho.com " , " Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@ " );
2022-08-05 20:13:58 +08:00
// UA-Sniffing domains below have indicated no interest in supporting Basilisk (BOO!)
pref ( " @GUAO_PREF@.humblebundle.com " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Basilisk) " );
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:68.0) @GK_SLICE@ Firefox/68.0 SeaMonkey/2.53.12 " );
2022-09-25 10:49:01 -04:00
pref ( " @GUAO_PREF@.facebook.com " , " Mozilla/5.0 (%OS_SLICE% rv:68.0) @GK_SLICE@ Firefox/68.0 @APP_SLICE@ " );
2022-08-05 20:13:58 +08:00
pref ( " @GUAO_PREF@.mewe.com " , " Mozilla/5.0 (%OS_SLICE% rv:102.0) Gecko/20100101 Firefox/102.0 " );
2021-01-10 18:18:42 +00:00
2021-01-19 16:54:53 +00:00
// UA-sniffing domains that are "app/vendor-specific" and do not like Basilisk
2022-08-05 20:13:58 +08:00
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 " );
2026-02-28 19:10:24 +00:00
pref ( " @GUAO_PREF@.youtube.com " , " Mozilla/5.0 (%OS_SLICE%; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0 " );
pref ( " @GUAO_PREF@.studio.youtube.com " , " Mozilla/5.0 (%OS_SLICE%; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0 " );
pref ( " @GUAO_PREF@.gaming.youtube.com " , " Mozilla/5.0 (%OS_SLICE%; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0 " );
2026-03-02 19:28:35 -08:00
pref ( " @GUAO_PREF@.yeezy.com " , " Mozilla/5.0 (%OS_SLICE%; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 " );
2021-01-10 18:18:42 +00:00
// The following domains do not like the Goanna slice
2023-08-06 21:21:27 -04:00
pref ( " @GUAO_PREF@.bab.la " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ " );
pref ( " @GUAO_PREF@.babla.gr " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ " );
pref ( " @GUAO_PREF@.collinsdictionary.com " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ " );
2023-08-04 21:06:04 -04:00
pref ( " @GUAO_PREF@.dictionary.cambridge.org " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ " );
2020-03-11 00:41:06 +02:00
pref ( " @GUAO_PREF@.hitbox.tv " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ " );
2023-08-06 21:21:27 -04:00
pref ( " @GUAO_PREF@.ldoceonline.com " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ " );
2020-03-11 00:41:06 +02:00
pref ( " @GUAO_PREF@.yuku.com " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ @APP_SLICE@ " );
2022-08-05 20:13:58 +08:00
// Domains Basilisk overrides that are not in the Pale Moon overrides
2023-12-18 10:16:25 +08:00
pref ( " @GUAO_PREF@.twitter.com " , " Mozilla/5.0 (%OS_SLICE% rv:102.0) @GK_SLICE@ Firefox/102.0 @APP_SLICE@ " );
2026-03-01 21:34:14 +00:00
pref ( " @GUAO_PREF@.x.com " , " Mozilla/5.0 (%OS_SLICE% rv:102.0) @GK_SLICE@ Firefox/102.0 @APP_SLICE@ " );
2023-12-01 08:56:55 -05:00
pref ( " @GUAO_PREF@.slack.com " , " Mozilla/5.0 (%OS_SLICE% rv:120.0) @GK_SLICE@ Firefox/120.0 @APP_SLICE@ " );
2022-10-26 12:26:03 -04:00
// There are multiple addons on the Pale Moon addons site that work with Basilisk that are not listed on the Basilisk addons site.
pref ( " @GUAO_PREF@.addons.palemoon.org " , " Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @UXP_VERSION_SLICE@ @FX_SLICE@ @PALE_MOON_SLICE@ " );
2022-08-05 20:13:58 +08:00
// ============================================================================