|
Posted by Benjamin Niemann on July 3, 2005, 5:19 pm
Please log in for more thread options
Wladimir Borsov wrote:
> Occasionally I want to save web pages (with the IE) without the
> surrounding frills and banners. For that I click on the link "print" and a
> printer friendly version web page is prepared and popped up. Most of the
> time this works well. However sometimes some fucking webmaster insert an
> automatic printer dialog popup which forces me to click on the "cancel"
> button first.
>
> Ok, assume I saved such a page on my hard disc. Is there a way to remove
> this printer dialog popup at least afterwards (in order to prevent other
> popups in the future)?
>
> Which HTML (or maybe javascript statements) do I have to remove?
>
> As an example look at this web page:
>
> http://focus.msn.de/hps/fol/newsausgabe/newsausgabe.htm?id=16282&drucken=1
Simple strip every JavaScript stuff from the page: every
<script>...</script> section and every on* attribute. It should be possible
to create a macro in a good editor that will do this on a single key press
or write some regular expression (if you prefer commandline tools like
'sed').
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
|