diff --git a/MMRA.safariextension/content.js b/MMRA.safariextension/content.js index d79668b..ab8ac92 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 meta[property="al:ios:app_name"][content="medium" i]')) { 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 d79668b..ab8ac92 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 meta[property="al:ios:app_name"][content="medium" i]')) { makeReadable(); shrinkHeaderImages(); +if (document.querySelector('head[prefix*="medium-com:"]')) { chrome.storage.sync.get(null, function(items) { if (items.hideDickbar) {