Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit a0b179e

Browse files
Merge pull request #1218 from dlanner/howdoi-patch
update jquery selector for first google search result to new page structure
2 parents 325bdc7 + 4d2dbee commit a0b179e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/howdoi.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = (robot) ->
3434
if jQuery('*:contains("did not match any documents.")').length > 0
3535
message.send "Sorry, I don't know anything about that.\n"
3636
else
37-
first_sresult = jQuery("a.l:first").attr('href')
37+
first_sresult = jQuery(".r a:first").attr('href')
3838
options.uri = first_sresult
3939
message.send options.uri
4040
scraper options, (err, jQuery) ->

0 commit comments

Comments
 (0)