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:
parent
006b583246
commit
59f5e12b63
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user