I have two questions,
first question: why is browser action fired when I open the browser or open a new tab(not only when I click)?
Another question is: my extestion changes all website colors, but when the website gets more information (such as facebook) after the browser action is fired, this can not be changed?
what can I do to make the browser action always change all the news too?
my background.js is:
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.tabs.executeScript({
file:"content.js"
});
});
and my content.js starts with:
$(document).ready(function(){
hauptProg();
});