mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
This commit is contained in:
parent
d7ff5a523e
commit
dcb6e87c1f
1 changed files with 4 additions and 1 deletions
|
|
@ -47,7 +47,10 @@ if ( document instanceof HTMLDocument === false ) {
|
|||
// https://github.com/gorhill/uBlock/issues/1124
|
||||
// Looks like `contentType` is on track to be standardized:
|
||||
// https://dom.spec.whatwg.org/#concept-document-content-type
|
||||
if ( (document.contentType || '').lastIndexOf('image/', 0) === 0 ) {
|
||||
// https://forums.lanik.us/viewtopic.php?f=64&t=31522
|
||||
// Skip text/plain documents.
|
||||
var contentType = document.contentType || '';
|
||||
if ( /^image\/|^text\/plain/.test(contentType) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue