1

I want to build an Chrome extensions using a content script that extracts/highlights all links on a page, including Google search results links (but not limited to Google).

My problem is now, how can I detect that new content if available if the sites is highly dynamic. When I use the naive idea:

$(document).ready(function() { 
  alert('document ready'); 
});

then this event fires when I open Google. But actually performing query or going to the next results page do not trigger this event. Is there any website-agnostic (i.e., I don't have to know the id of DIVs, for example) event that fires when "the content has changed".

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Christian
  • 3,239
  • 5
  • 38
  • 79

0 Answers0