Re: Filtering webpages

2016-01-29 Thread Vince M Hudd
Gavin Wraith  wrote:
> In message 
>   Vince M Hudd  wrote:

[blocking domains via the host file]

> > If you can do something similar in your router, you will achieve the
> > same result for any computer on your network.

> Thanks for that tip. I realize that the idea of a webpage being hosted at
> a particular URL, with pictures, styles, javascript, ... etc being loaded
> in from elsewhere is not necessarily realistic.

It's actually very *common* - for scripts in particular, with advertising
and analytics services being the most obvious examples.

You *might* find blocking such things results in a speed gain from NetSurf
on some sites (it depends on a number of factors), and/or you might find the
resulting pages are less cluttered and easier to read.

(TBH, I'm not yet using RISC OS / NetSurf enough [yet] to be able to do
anything more than suggest it as an untested possibility.)

> It is often quite hard to see from the source html text exactly what is
> happening.

True enough.

-- 
Vince M Hudd
Soft Rock Software

Don't forget to vote in the 2015 RISC OS Awards:
www.riscosawards.co.uk/vote2015.html



auto-launching a PDF

2016-01-29 Thread Jim Nagel
When Netsurf fetches a PDF file, would it be possible to trigger the 
PDF-reading application automatically, rather than requiring the user 
to save the file to disc and then launch it manually?

(The manual procedure is too complex to explain to a technophobe Other 
Half.)

What prompts me to ask is that I came across the following text inside 
!PDFtest.Docs.Hints, which is dated 1998-03-24, apparently by Leo 
Smiers (who ported the PDF reader from XPDF on Linux; Colin Granville 
carried on the work):

 =
 Hints dd 980309
 =
 
 Starting !PDF from !Fresco version 1.32
 
   It's possible to make Fresco start !PDF when it downloads 
 a PDF file. To do this, you must add lines to the 
 !InetSuite.Internet.Files.MimeMap and !Fresco.Runables 
 files.
 
   In the MimeMap file add the line:
 application/pdf  PDF ADF .pdf
 
   In !Fresco.Runables (if this file does not exists you have 
 to create it) add the line:
 ADF
 
   Now quit and restart !Fresco. When you view a .pdf file, 
 Fresco will filer_run the downloaded pdf file. If !PDF has 
 been seen, it will load and display the page.
 
   Many thanks to Dean Murphy from ANT Ltd. Cambridge from 
 whom I recieved this information.
 =

Perhaps this facility exists already in Netsurf and I just don't know 
about it.

-- 
Jim Nagelwww.archivemag.co.uk