From e75a07ae32b13c8f90ddc4d465d911c8d73133c4 Mon Sep 17 00:00:00 2001 From: K4sum1 Date: Sat, 27 Sep 2025 21:04:30 -0700 Subject: [PATCH] Make cuckflare work --- application/basilisk/branding/shared/uaoverrides.inc | 4 ++++ application/palemoon/branding/shared/pref/uaoverrides.inc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/application/basilisk/branding/shared/uaoverrides.inc b/application/basilisk/branding/shared/uaoverrides.inc index 796162fcaa..998fd598ee 100644 --- a/application/basilisk/branding/shared/uaoverrides.inc +++ b/application/basilisk/branding/shared/uaoverrides.inc @@ -14,6 +14,10 @@ // %OS_SLICE% macro is resolved at runtime, see MoonchildProductions/UXP/issues/1473 +// 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@"); + // 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. diff --git a/application/palemoon/branding/shared/pref/uaoverrides.inc b/application/palemoon/branding/shared/pref/uaoverrides.inc index 4d45592202..c9d35699e0 100644 --- a/application/palemoon/branding/shared/pref/uaoverrides.inc +++ b/application/palemoon/branding/shared/pref/uaoverrides.inc @@ -13,6 +13,10 @@ // %OS_SLICE% macro is resolved at runtime, see MoonchildProductions/UXP/issues/1473 +// 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:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@"); + // 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.