Re:Tracking users via CSS
by chownie on Tuesday September 15, 2020 @08:47AM
(#24480588)
I think that's the point, a headless browser is unlikely to trigger :hover behaviour.
[ Parent
| on HN ]
Re:Tracking users via CSS
by hoistbypetard on Tuesday September 15, 2020 @09:56AM
(#24481217)
> I think that's the point, a headless browser is unlikely to trigger :hover behaviour.
That is not true. I just tried it with headless chrome and triggered :hover behavior immediately just by synthesizing mouse movement the same way I would by using it as a scraper.
I think his point is that the average scraper isn't going to bother simulating mouse movements to trigger the hover behavior.
Re:Tracking users via CSS
by hoistbypetard on Tuesday September 15, 2020 @10:33AM
(#24481610)
Not specifically for that purpose, sure. I didn't simulate the mouse movements for that purpose. The hover triggered when I simulated scrolling and clicks the same way I do when I want to scrape sports stats from sites that hide them behind scroll movements or mouse clicks.