[tor-talk] Torbutton: Resize windows to multiples of 50px during Tor usage
Alexander Cherepanov
cherepan at mccme.ru
Sun Apr 17 12:25:16 UTC 2011
On 17.04.2011 14:42, tagnaq wrote:
>> I run the test on http://ip-check.info with Torbutton 1.2.5 and the
>> latest Tor Browser Bundle (Torbutton 1.3.2-alpha).
>> The results in both cases show that the window resolution is not set to
>> multiples of 50px.
>
> Compaired to a bunch of other websites [1] that do similar checks
> ip-check.info seams to be the only one detecting the real screen/window
> resolution. I guess [1] use JavaScript to get screen/window size and
> ip-check.info doesn't.
Yep, it uses CSS3 Media Queries. Like that:
@media all and (width: 1024px) { ...make some text visible... }
It's also possible to query things like resolution and Windows theme.
For details see here:
http://www.w3.org/TR/css3-mediaqueries/
https://developer.mozilla.org/en/CSS/Media_queries
More information about the tor-talk
mailing list