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

Fix medium site detection

This commit is contained in:
Dang Huynh 2018-09-18 10:55:49 +08:00
parent 006b583246
commit 59f5e12b63
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {