7 ms·
The user can hover their mouse over the link and their status bar will show https://www.bankofamerica.com, as expected. Google search results use a simil
by damncabbage 14y ago
The user can hover their mouse over the link and their
status bar will show https://www.bankofamerica.com, as
expected.
Google search results use a similar technique to show you the "right" link when you hover.
(It's only when you click the link does it muck around with the DOM to insert the google.com/... redirect link.)
- feross 14y agoYep. Try Right Click > Copy Link Address. It copies the google.com/... redirect link, which is how I first learned that they were doing this.
- damncabbage 14y agoTo see how it works: * Open a search in Chrome, and open up the Inspector (making sure not to right-click any links you want to inspect), * Find an <a href="..."> tag for a search result. * Right-click the tag in the Inspector, go Break On... => Attributes Modifications. * Right-click the link like you usually would to copy it, and see what happens.
- peterjmag 14y agoThat's not what's happening here though. The JS in the demo doesn't change the href attribute of the link, it just adds an event handler that prevents the real link from loading using e.preventDefault() and then triggers full screen.
- damncabbage 14y agoSorry, I wasn't very clear; I'm just saying that both this and Google Search spoofs the status bar by obscuring what a link will do until it's clicked.
- guelo 14y agoThis is pissing me off. The link hover should be sacred, browsers shouldn't allow any trickery there.
- finnw 14y agoI won't be surprised if both Google and MS restrict this in their browsers in the near future, but make exceptions for their own search engines.
- vilgax 14y agoFor Google Search use this userscript http://userscripts.org/scripts/show/121923 http://userscripts.org/scripts/show/121923 Work in FF & Google Chrome.
- ben0x539 14y agoThis was really annoying for me because somehow the google redirect link took a lot longer to load than the ultimate destination would, or even regular google pages.