I made Google Chrome extension which inserts (by default hidden) text area into document.
It appears on all pages. It's ok when page is HTML, but on other pages it's unuseful. For example, when I open https://raw2.github.com/github/hubot/master/README.md, I can see textarea, even it has display: none !important
styling (via class). It should be hidden, but it isn't.
How to prevent that weird situation? Maybe to check document type (is it HTML)?