On 28.09.2013 12:32, Ben Stover wrote:
Assume I have a web page with the following simplified code:
...
<head>
....
<link type="test/css" media="print" rel="stylesheet" href="../../css/print.css">
...
</head>
<body>
....
In this mentioned print.css file (see above) there is a statement line (among
others):
....
@page { margin-top: 3cm; margin-bottom: 3cm}
...
How can I shrink these values with Greasemonkey to 1cm (or even better suppress
the @page command completely)?
Unless you want to disable the whole stylesheet, e.g. with jQuery
|$('link[rel="stylesheet"][media="print"]').prop('disabled', 'disabled');|
you can simply add another style to the document that overrides these
definitions:
$('head').append('<link rel="stylesheet" media="print"
href="http://www.example.com/otherstyle.css" type="text/css" />');
--
Klaus Johannes Rusch
[email protected]
http://klausrusch.atmedia.net/
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/groups/opt_out.