mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 08:37:30 +09:00
step 1 in trying to fix yeezy.com
This commit is contained in:
parent
458d2e21c7
commit
62cdc74b3a
4 changed files with 22 additions and 2 deletions
|
|
@ -73,6 +73,7 @@ pref("@GUAO_PREF@.web.whatsapp.com","Mozilla/5.0 (Windows NT 10.0; Win64; x64) A
|
||||||
pref("@GUAO_PREF@.youtube.com","Mozilla/5.0 (%OS_SLICE%; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0");
|
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@.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");
|
pref("@GUAO_PREF@.gaming.youtube.com", "Mozilla/5.0 (%OS_SLICE%; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0");
|
||||||
|
pref("@GUAO_PREF@.yeezy.com", "Mozilla/5.0 (%OS_SLICE%; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0");
|
||||||
|
|
||||||
// The following domains do not like the Goanna slice
|
// The following domains do not like the Goanna slice
|
||||||
pref("@GUAO_PREF@.bab.la","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");
|
pref("@GUAO_PREF@.bab.la","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");
|
||||||
|
|
|
||||||
|
|
@ -1105,6 +1105,25 @@ nsStandardURL::ParseURL(const char *spec, int32_t specLen)
|
||||||
nsresult
|
nsresult
|
||||||
nsStandardURL::ParsePath(const char *spec, uint32_t pathPos, int32_t pathLen)
|
nsStandardURL::ParsePath(const char *spec, uint32_t pathPos, int32_t pathLen)
|
||||||
{
|
{
|
||||||
|
// Cloudflare Image Resizing compatibility:
|
||||||
|
// Treat everything after /cdn-cgi/image/ as opaque path data.
|
||||||
|
nsDependentCSubstring fullPath(spec + pathPos, pathLen);
|
||||||
|
|
||||||
|
nsACString::const_iterator begin, end;
|
||||||
|
fullPath.BeginReading(begin);
|
||||||
|
fullPath.EndReading(end);
|
||||||
|
|
||||||
|
nsACString::const_iterator cfPos = begin;
|
||||||
|
if (FindInReadable(NS_LITERAL_CSTRING("/cdn-cgi/image/"), cfPos, end)) {
|
||||||
|
uint32_t offset = cfPos.get() - begin.get();
|
||||||
|
|
||||||
|
mPath.mPos = pathPos + offset;
|
||||||
|
mPath.mLen = pathLen - offset;
|
||||||
|
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
LOG(("ParsePath: %s pathpos %d len %d\n",spec,pathPos,pathLen));
|
LOG(("ParsePath: %s pathpos %d len %d\n",spec,pathPos,pathLen));
|
||||||
|
|
||||||
if (pathLen > net_GetURLMaxLength()) {
|
if (pathLen > net_GetURLMaxLength()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue