Created
September 10, 2018 16:16
-
-
Save eimfach/6434e6cee1ab8e24c23cb7a1caa1fd34 to your computer and use it in GitHub Desktop.
medium.com print bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var iframes = document.getElementsByTagName('iframe'); for(var i = 0; i < iframes.length; i++) {iframes[i].width = "auto"; } | |
var content="@media print { img {max-width: 640px !important;} iframe { width: auto; display: block; } .section-inner.sectionLayout--insetColumn { max-width: 1024px !important; padding: padding: 0px 0px !important; } }"; | |
var style = document.createElement('style'); | |
style.appendChild(document.createTextNode(content)); | |
document.getElementsByTagName('head')[0].appendChild(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment