diff --git a/MMRA.safariextension/content.js b/MMRA.safariextension/content.js index ab8ac92..6cb9016 100644 --- a/MMRA.safariextension/content.js +++ b/MMRA.safariextension/content.js @@ -87,9 +87,9 @@ var config = {attributes: true}; // 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[prefix*="medium-com:"]')) { makeReadable(); shrinkHeaderImages(); -if (document.querySelector('head[prefix*="medium-com:"]')) { chrome.storage.sync.get(null, function(items) { if (items.hideDickbar) { diff --git a/content.js b/content.js index ab8ac92..6cb9016 100644 --- a/content.js +++ b/content.js @@ -87,9 +87,9 @@ var config = {attributes: true}; // 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[prefix*="medium-com:"]')) { makeReadable(); shrinkHeaderImages(); -if (document.querySelector('head[prefix*="medium-com:"]')) { chrome.storage.sync.get(null, function(items) { if (items.hideDickbar) {