thebaer / MMRA

Make Medium Readable Again — a browser extension
https://makemediumreadable.com
MIT License
667 stars 31 forks source link

MMRA when user navigates to a post #1

Closed thebaer closed 7 years ago

thebaer commented 7 years ago

Right now Medium is only Made Readable Again when a site first loads. This may leave readers with an un-great experience after they navigate to a post

chris-morgan commented 7 years ago

The proper solution for this is probably to detect Medium’s meta tag and then just inject a stylesheet via chrome.tabs.insertCSS.

The actual CSS will be something along the lines of

.metabar.u-fixed {
    position: relative !important;
}

.js-stickyFooter,
.js-postShareWidget,
footer > .container:first-child {
    display:none !important;
}
thebaer commented 7 years ago

Oh awesome -- thanks! Didn't know that was possible. Will try that out this evening.

panphora commented 7 years ago

Just ran into this and came here to report it. My first impression was that the extension just wasn't working at all because I navigated to a post from the Hacker Noon front page and the top nav bar was sticky. Would be great to have a fix for this.

thebaer commented 7 years ago

chrome.tabs.insertCSS needs a background script to communicate with the content script and run the function. #7 quickly fixed the issue for v1.2; the insertCSS solution has been moved to #8.