Skip to content

Commit

Permalink
Fix forbes false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian committed Aug 21, 2014
1 parent ddf797d commit 4525eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ _window.AD_DETECTOR_RULES = {
{
example: 'http://www.forbes.com/sites/fidelity/2014/04/29/should-you-accept-your-employers-pension-buyout-offer/',
match: function() {
return document.getElementsByClassName('brandvoice').length > 0;
return document.querySelector('.article_entity .brandvoice') !== null;
},
getSponsor: function() {
return document.getElementsByClassName('brandvoice')[0].textContent;
return document.querySelector('.article_entity .brandvoice').innerHTML;
},
},
],
Expand Down

0 comments on commit 4525eb1

Please sign in to comment.