Looking for feature to Change TimeZone/Spoof Time Zone based on IP address.
Current addon I am using is Chameleon from Serenblue. This extension query IP address from online database to convert IP to TimeZone.




_Happy to donate $20 to your BTC address at main page._
Timezone faking is very complex (I'm not sure if it's even completely possible).
I just ran a very quick test with Chameleon and it managed to fake getTimezoneOffset but failed to fake the generated date string (@sereneblue):

So what is your exact use case? Do you use a VPN and want to match the timezone you are leaving it?
Timezone faking is very complex (I'm not sure if it's even completely possible).
I just ran a very quick test with Chameleon and it managed to fake getTimezoneOffset but failed to fake the generated date string (@sereneblue):
So what is your exact use case? Do you use a VPN and want to match the timezone you are leaving it?
Thanks for testing my supplied reference app. Yes I used vpn to test something and IP location changes. Matching timezone.
While checking with https://whoer.net/#extended it always shows System and Local time is matched. (While using @sereneblue /Chameleon app)
Timezone faking is very complex (I'm not sure if it's even completely possible).
I agree with the above. It's not possible to really spoof this using webextensions. The best alternative is to launch Firefox with a modified timezone environment variable on Linux. (maybe possible on Windows?). What was wrong with the generated string?
@sereneblue: you're right. The text is consistent but I selected HST timezone... so the timezone spoofing is not working at all at the moment or did I do something wrong? I just selected a timezone in the browser action popup.
@sereneblue: you're right. The text is consistent but I selected HST timezone... so the timezone spoofing is not working at all at the moment or did I do something wrong? I just selected a timezone in the browser action popup.
It looks like you're testing on 127.0.0.1? Chameleon is disabled for private IPs/localhost.
Ah... did not know that.
OK - then here is my point how chameleon does not protect your timezone:
function twoDiggits(num){return num >= 10? num.toFixed(0): "0" + num.toFixed(0);}
var now = new Date();
var today = now.getFullYear() + "-" + twoDiggits(now.getMonth() + 1) + "-" + twoDiggits(now.getDate())
alert((new Date(today + " 00:00:00") - new Date(today)) / 60000);
... and then there are web workers...
PS: you're leaking that you modified the functions: Function.prototype.toString.call(Date);
Ah... did not know that.
OK - then here is my point how chameleon does not protect your timezone:
function twoDiggits(num){return num >= 10? num.toFixed(0): "0" + num.toFixed(0);} var now = new Date(); var today = now.getFullYear() + "-" + twoDiggits(now.getMonth() + 1) + "-" + twoDiggits(now.getDate()) alert((new Date(today + " 00:00:00") - new Date(today)) / 60000);... and then there are web workers...
PS: you're leaking that you modified the functions:
Function.prototype.toString.call(Date);
Thanks for pointing those out. I'll look into the first issue but not sure if there's actually anything that can be done about it. The second issue should be resolved in a future update.
Most helpful comment
Ah... did not know that.
OK - then here is my point how chameleon does not protect your timezone:
... and then there are web workers...
PS: you're leaking that you modified the functions:
Function.prototype.toString.call(Date);