Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Correct syntax for privacy.fingerprintingProtection.granularOverrides?

  • 2 replies
  • 0 have this problem
  • Paskiausią atsakymą parašė RSizington

more options

Hello,

I am trying to force two or three websites to detect my timezone as UTC, even though my local system time is not UTC. I figured out how to do this with ALL sites by setting privacy.fingerprintingProtection to "true" and entering "+JSDateTimeUTC" in privacy.fingerprintingProtection.overrides in about:config.

Now according to docs, privacy.fingerprintingProtection.granularOverrides "can be used to add or remove features on a domain granular level if privacy.fingerprintingProtection is enabled," but I can't figure out how to get it working.

Any input is appreciated.

Hello, I am trying to force two or three websites to detect my timezone as UTC, even though my local system time is not UTC. I figured out how to do this with ALL sites by setting privacy.fingerprintingProtection to "true" and entering "+JSDateTimeUTC" in privacy.fingerprintingProtection.overrides in about:config. Now according to docs, privacy.fingerprintingProtection.granularOverrides "can be used to add or remove features on a domain granular level if privacy.fingerprintingProtection is enabled," but I can't figure out how to get it working. Any input is appreciated.

Chosen solution

Someone needs to write some documentation for this feature. Or at least make it come up in Google.

In the source code, there is a SCHEMA definition that refers to three properties: overrides, firstPartyDomain, thirdPartyDomain. https://searchfox.org/mozilla-release/source/toolkit/components/resistfingerprinting/FingerprintingWebCompatService.sys.mjs#22

For the overrides it says to refer to https://searchfox.org/mozilla-central/source/toolkit/components/resistfingerprinting/RFPTargets.inc, a file that lists a lot of different kinds of events and properties, but doesn't really explain what you can do with them.

After some trial and error, it looks like this is the syntax:

[ { "firstPartyDomain": "jeffersonscher.com" , "overrides": "+WindowOuterSize" }, 
  { "firstPartyDomain": "reddit.com" , "overrides": "+JSDateTimeUTC" } ]

(Without the line break, of course.)

Skaityti atsakymą kartu su kontekstu 👍 1

All Replies (2)

more options

Chosen Solution

Someone needs to write some documentation for this feature. Or at least make it come up in Google.

In the source code, there is a SCHEMA definition that refers to three properties: overrides, firstPartyDomain, thirdPartyDomain. https://searchfox.org/mozilla-release/source/toolkit/components/resistfingerprinting/FingerprintingWebCompatService.sys.mjs#22

For the overrides it says to refer to https://searchfox.org/mozilla-central/source/toolkit/components/resistfingerprinting/RFPTargets.inc, a file that lists a lot of different kinds of events and properties, but doesn't really explain what you can do with them.

After some trial and error, it looks like this is the syntax:

[ { "firstPartyDomain": "jeffersonscher.com" , "overrides": "+WindowOuterSize" }, 
  { "firstPartyDomain": "reddit.com" , "overrides": "+JSDateTimeUTC" } ]

(Without the line break, of course.)

Helpful?

more options

Excellent, sir! This was the solution!

Thank you!

Helpful?

Užduoti klausimą

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.