Ver a proveniência

Merge branch 'master' of https://github.com/kgdiem/MMRA into kgdiem-master

tags/v1.2
Matt Baer há 6 anos
ascendente
cometimento
915e31efa5
1 ficheiros alterados com 8 adições e 0 eliminações
  1. +8
    -0
      content.js

+ 8
- 0
content.js Ver ficheiro

@@ -38,6 +38,12 @@ var disableLazyLoading = function() {
}
};

var observer = new MutationObserver(function(mutations){
mutations.forEach(makeReadable);
});

var config = {attributes: true};

// Only run this on Medium sites.
// Ensure that by checking for <meta property="al:ios:app_name" content="Medium"> in the document <head />
var metaCheck = document.head.querySelector('meta[property="al:ios:app_name"]');
@@ -52,4 +58,6 @@ if (metaCheck != null && metaCheck.content == "Medium") {
disableLazyLoading();
}
});

observer.observe(document.querySelector('body'), config);
}

Carregando…
Cancelar
Guardar