3 ms·
Yeah -- I mean, it would be easy enough for browsers to not include text marked as display:none or visibility:hidden. But there are so many other tricks to hid
by crazygringo 14y ago
Yeah -- I mean, it would be easy enough for browsers to not include text marked as display:none or visibility:hidden.
But there are so many other tricks to hiding text -- margin-left:-10000px, font-size:0, color:white, and so on, that there's really no way to avoid this.
So I can't even imagine how a browser extention would 'fix' this -- no matter how clever it tried to be, there would almost always be some way around it.
- gmaslov 14y agoOCR would work ;-)
- LukeShu 14y agoSo, I know that was a joke, but now I'm trying to figure out why it's a bad idea. The browser can generate some kind of map for which region of the screen is what font. If you don't have to guess the font, OCR should be easy and reliable. That takes care of the hidden text issue. But second, it means one would be able to copy/paste text that is in an image (because some web designers hate you).
- jiggy2011 14y agoBut you don't select text by selecting an area technically, you select a sequence of characters. You could do a per character visibility test at the time of copying, but sometimes you want to copy test that is not currently visible on your screen. For example doing Ctrl+A in a document.
- TheJH_ 14y agoMaybe... unless you figure out a trick to manipulate the OCR results with invisible, nearly-white gray areas in the image or so.
- Lerc 14y agoYeah, That's a feature I'd like to have back again. http://amiga-fish.erkan.se/amiga-fish-disk-968-content-PowerSnap/ http://amiga-fish.erkan.se/amiga-fish-disk-968-content-Power...
- flogic 14y agoIt's a game of whack a mole, but that doesn't mean it's not a worthwhile game to play.
- desas 14y agoIt strikes that Google probably has some algorithms to detect this. Otherwise black hat SEOers would use this trick to stuff keywords or something.
- psionski 14y agoAFAIK Google fails to penalize you if there is any difference between your background and foreground colors, even if it's 1 unit (e.g. bg #000000 fg #010101). There's always a way around these things :)
- jaredmcateer 14y agoThe best option I can think of, which is not ideal, is to flash a message of the total copied text. This of course won't be very useful if you're copying a large amount of text but this sort of attack seems to require appending to the beginning of the text which should be easy enough to catch.