Member Sign In
Not a member?

A Wired.com user account lets you create, edit and comment on Webmonkey articles. You will also be able to contribute to the Wired How-To Wiki and comment on news stories at Wired.com.


It's fast and free.

Sign in with OpenID
Sign In
Webmonkey is a property of Wired Digital.
processing...
Join Webmonkey

Please send me occasional e-mail updates about new features and special offers from Wired/Webmonkey.
Yes No

Please send occasional e-mail offers from Wired/Webmonkey affiliated web sites and publications, and carefully selected companies.
Yes No

I understand and agree that registration on or use of this site constitutes agreement to Webmonkey's User Agreement and Privacy Policy.
Webmonkey is a property of Wired Digital.
processing...

Retrieve Sign In

Please enter your e-mail address or username below. Your username and password will be sent to the e-mail address you provided us.

or
Webmonkey is a property of Wired Digital.
processing...

Welcome to Webmonkey

A private profile page has been created for you.
As a member of Webmonkey, you can now:
  • edit articles
  • add to the code library
  • design and write a tutorial
  • comment on any Webmonkey article
Close
Webmonkey is a property of Wired Digital.

Sign In Information Sent

An e-mail has been sent to the e-mail address registered in this account.
If you cannot find it in your in-box, please check your bulk or junk folders.
Sign In
Webmonkey is a property of Wired Digital.

CSS Leak Provides a Sneaky Approach to Per-User Customization

badges

You’ve been seeing already-visited links turn a different color from unseen ones so long that you probably don’t think about it. Interestingly, Aza Raskin points out, CSS does think about it.

By programmatically looking at the style of links your browser is displaying, a JavaScript script can tell which are purple and which blue; and hence where your browser’s been!

A new script called SocialHistory.js exploits that little information leak in the service of good. Eyeball-hungry blogs, including the Wired.com family, have a bad habit of barraging the user with iconified demands: “Digg this! Reddit this! StumbleUpon this! Simpy this!”

SocialHistory.js pulls up a hidden iframe in order to sniff which, from a checklist of 30+ social-bookmarking sites, a user has visited. Armed with a JavaScript array of that information, site designers can limit their arsenal of steenking badges to a customized couple that each user may find helpful.

Of course this CSS discovery trick has a million other possible uses, just waiting to be exploited. Meanwhile, it’s an open Mozilla bug, which may be stamped out before it becomes widely used as a scripting technique.

Post Comment Comments Permalink Print
Reddit Digg

 

/related_articles/

See more related articles

Subscribe now

Special Offer For Webmonkey Users

WIRED magazine:
The first word on how technology is changing our world.

Subscribe for just $10 a year