Created
June 17, 2017 00:02
-
-
Save devhero/9415119fe711bd0f6e9ce9a87f5b61e0 to your computer and use it in GitHub Desktop.
How do I print with the screen stylesheet? - https://superuser.com/questions/456700/how-do-i-print-with-the-screen-stylesheet
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
$('*[media="screen"],*[media="print"]').attr('media', '') | |
// If page doesn't have jQuery, inject it: | |
var el = document.createElement('script'); el.type = "text/javascript"; el.src = "http://code.jquery.com/jquery-latest.pack.js"; document.body.appendChild(el); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment