1
0
mirror of https://github.com/thebaer/MMRA synced 2024-11-13 10:11:01 +00:00

Comment more about the Medium site check

This commit is contained in:
Matt Baer 2018-03-31 09:34:31 -04:00
parent 4b1ca2a26c
commit 316dbf0f29

View File

@ -63,7 +63,8 @@ var observer = new MutationObserver(function(mutations){
var config = {attributes: true}; var config = {attributes: true};
// Only run this on Medium sites. // This extension runs on all domains so it can Make Medium Readable Again even for publications on custom domains.
// Here we make sure the code only runs on Medium sites.
if (document.querySelector('head meta[property="al:ios:app_name"][content="medium" i]')) { if (document.querySelector('head meta[property="al:ios:app_name"][content="medium" i]')) {
makeReadable(); makeReadable();
shrinkHeaderImages(); shrinkHeaderImages();