javascript - Firefox Add-ons want to change add-ons button as per webpage element's attribute data-status change into Panel -


The latest SDK addon-sdk-1.17 I try to develop an add-on via Firefox. I have a webpage in the panel of FF add-on and I want to change the add-on color or image or some things to indicate changes / updates in the panel's webpage. The more specific situation is that the id and lt; An title = "" is an anchor element with data-base-title = "" data-status = "" id = "message-icon" ... ... this & lt; Note that the change in the form of a title = "" Data-origin-title = "" Data-Status = "Heads-Message" id = "Message-icon" ... will be Data-Position = "Is-message" changes I want to get this change and send a message to the user through the Firefox add-on.

I know that the way to "code" of port.emit () and is the way of "content script"> port.on () . Content script sends messages using self.port.emit () and the add-on script gets them using the panel.port. On (), but I did not know through tutorials and SDK documents Please help me in this case.

Thanks in advance.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -