mirror of
https://github.com/thebaer/MMRA
synced 2024-11-13 10:11:01 +00:00
Merge pull request #23 from thebaer/patch-medium-detection
Fix Medium detection
This commit is contained in:
commit
63fb325f02
@ -63,8 +63,9 @@ 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.
|
||||||
if (document.querySelector('head meta[property="al:ios:app_name"][content="medium"]')) {
|
// 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();
|
makeReadable();
|
||||||
shrinkHeaderImages();
|
shrinkHeaderImages();
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<h2>Defaults</h2>
|
<h2>Default Features</h2>
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" checked="checked" disabled="disabled"> Un-stick top navigation bar
|
<input type="checkbox" checked="checked" disabled="disabled"> Un-stick top navigation bar
|
||||||
|
Loading…
Reference in New Issue
Block a user