1
0
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:
Matt Baer 2018-03-31 09:42:11 -04:00 committed by GitHub
commit 63fb325f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -63,8 +63,9 @@ var observer = new MutationObserver(function(mutations){
var config = {attributes: true};
// Only run this on Medium sites.
if (document.querySelector('head meta[property="al:ios:app_name"][content="medium"]')) {
// 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();

View File

@ -27,7 +27,7 @@
<hr />
<h2>Defaults</h2>
<h2>Default Features</h2>
<label>
<input type="checkbox" checked="checked" disabled="disabled"> Un-stick top navigation bar