News for hackers. Stuff that matters.
Re:Ingenious Hack by Facebook Spammers: Smoking Hot Bartenders by neilk on Thursday August 26, 2010 @11:37PM (#1637935)
I actually use this trick for good, not evil. It's a way of styling certain unstyleable elements in old browsers. But you have a point -- it's useless in modern browsers. That said, what is the standard? Is 5% enough?
Re:Ingenious Hack by Facebook Spammers: Smoking Hot Bartenders by po on Thursday August 26, 2010 @11:54PM (#1637951)
Maybe we need fractional clicks. If you click on a 0% opaque button then you don't get a click. If it's 1% opaque, then you get 1% of a click event. :-)

Actaully... I started writing that as a joke but now that I think about it, if the browser embedded the opacity value of the clicked element in the GET or POST header, the webserver receiving the click could set the standard themselves.

Alternately, since facebook has lots of resources, facebook could make a request to the referring site themselves, render the page and determine if there are any shenanigans going on with z-ordering or opacity automatically. You could look at all of the css applied to all of the element affecting those pixels.

No... this is all crazy. Just pick a value like 30% and disallow clicks on anything less.

Re:Ingenious Hack by Facebook Spammers: Smoking Hot Bartenders by pak on Friday August 27, 2010 @02:18AM (#1638158)
What about visibility: hidden?

What about background: transparent?

What about background: url(transparent.png)?

What about background: data:encoded-transparent-image...

Even browser-side "visibility" calculations can become an AI-level problem quickly.

Re:Ingenious Hack by Facebook Spammers: Smoking Hot Bartenders by dLuna on Friday August 27, 2010 @05:08AM (#1638328)
There is an easy solution to the AI calculation though.

Anything not proven visible counts as invisible. Done!

Re:Ingenious Hack by Facebook Spammers: Smoking Hot Bartenders by sbierwagen on Friday August 27, 2010 @10:29PM (#1640994)
Anything not "proven invisible"? So... any text on any image background? Any colored text on any background? (white text on white background...)