Ever since I see CSS or JS files, even then my extension starts to pulsate, Want to add the check which only triggers my extension when the current page's content-type is text / html. Example: On my page load handler function, dragload () {// just want to proceed if content type text / html or * / html page if (contentTypeIsHtml ()) {// Here is the}}
what contentTypeIsHtml () should do?
You can get the content type using document.contentType property (this is not the standard DOM , But can be used by extensions)
Comments
Post a Comment