I created a Chrome extension that works as expected except that it only executes when I load a page that matches the conditions in the manifest. I have tried for hours to make i
use browserAction API ,see here
the onClick events may help you. also see these exsamples from google :