Unix linebreaks.
Relative links cleaning with test for that.
Less specific selector for search result links.
Google can also put redirectional URL into q variable in some SERPs.