thebaer / MMRA

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

Huge header image not reduced #17

Open waldyrious opened 6 years ago

waldyrious commented 6 years ago

I'm not sure whether this is a regression of #10 or simply a different markup that would need to be supported, but see for example https://articles.mattoakes.net/a-better-way-to-automatically-merge-changes-in-your-xcode-project-files-3d83b3583fe4 -- for me, the title image isn't reduced.

Perhaps it's a CSP issue? I'm seeing the following error in the console:

Content Security Policy: The page’s settings blocked the loading of a resource at data:application/javascript;base64,KGZ1b... (“script-src 'unsafe-eval' 'unsafe-inline' about: https: https://articles.mattoakes.net”).

thebaer commented 6 years ago

Doesn't seem to be a CSP issue -- rather it looks like this is a different type of giant image section that wasn't covered by #9 / #10. Notably this section contains text, whereas #10 covers giant standalone images like in this article.

I didn't find a quick solution and would want to do more testing to be sure there aren't side-effects. But anyone should feel free to try and fix this if they want.