How can I disable window.print()

in Script development
Subscribe to How can I disable window.print() 4 posts, 3 voices



Nnwww User

Hello -
I'm rather new to Javascript.

Now I use the existing script
http://userscripts.org/users/1040/scripts
> SpOn-direct-to-print
> Points Spiegel Online article links to the print version

But each opened print page
eg http://www.spiegel.de/netzwelt/tech/0,1518,druc...
contains a command

in its body and then a print dialog box is displayed.

How can I disable this unwanted print?

Thanks for any hint or solution.

Best regards

 
Nnwww User

Sorry, the important command was suppressed:
..script type="text/javascript".. window.print(); ../script..

I just would like to read the print version
but not print it 'automagically'.

Thanks again.

 
Mikado Scriptwright

Unfortunately, this command is called before GreaseMonkey executes scripts. But you can always download page source, delete that line from it and open result in new tab.

 
blippy User

Configurable Security Policies (CAPS)
https://addons.mozilla.org/en-US/firefox/addon/...
http://controledescripts.mozdev.org/help/CAPS.x...

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel