I use the Greasemonkey method and JQuerys #css to add CSS styles to the page. Script:
$('#framen').css({'height': 'auto', width: 'auto'});
$('#menu').css({ 'display': 'none'});
Now my question is: how to apply the last rule only for @media print?
In other words: if it were pure CSS, I would use this syntax:
@media print {
/* style sheet for print goes here */
}
But how to do it with Greasemonkey / jQuery
source
share