Skip to content

Commit

Permalink
fix selector to ignore ads
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrion committed Oct 18, 2017
1 parent ef0093a commit 77bd847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var updateLinks = function() {
}
// Match DuckDuckGo
else if (window.location.host.indexOf('duckduckgo') > -1) {
hrefSelector = 'h2.result__title>a.result__a';
hrefSelector = '#links h2.result__title>a.result__a';
timeToWait = 1000;
$('head').unbind('DOMSubtreeModified',updateLinks);
$('head').bind('DOMSubtreeModified', updateLinks);
Expand Down

0 comments on commit 77bd847

Please sign in to comment.