I have an extension which consists essentially of this (using jQuery):
$('a[href*="dailymail"]').css({'background':'#333'})
and it works just fine on regular links.
It doesn't work on Google search results, however, because the href
part of the link is actually a google redirect URL, and the actual URL is in a data-href
attribute.
My problem is that
$('a[data-href*="dailymail"]').css({'background':'#333'})
doesn't work. Do I have a problem with matching the attribute/value, or with Google's search results page, or what?
TIA for any thoughts.