User loginNavigationSearch |
Filtered Web PagesVersion 1.0.2 has a new NewsFox function: filtered web pages. This allows you to download web content to examine while offline. But it allows you to filter the web content before it is stored, both to make it smaller and give it a higher signal/noise ratio. Here is how it works. A new column is added to the article pane(labeled '+' in en-US). It is hidden by default, so you'll have to enable it with the columnpicker(column named 'Filtered Web' in en-US). The icon for this column has five states:
Clicking on the icon in the read(regular text view) state will start downloading. Clicking on the icon in the unread(filtered web) state will revert to the regular text view. What happens to the downloaded filtered web page depends on the value in Now how do you tell NewsFox how to filter the web page? In the feed options dialog, there is a new tab 'Web filter' that lets you construct a filter. This is quite an advanced feature, and problems with its use will typically be outside the scope of NewsFox technical support. There are two methods you can use: 1) regular expressions and 2) JavaScript. You do either by entering the filter inside the text box. You can also just augment the usual feed description by checking the box to download images and not adding a filter. Regular Expression method: You enter a regular expression and the text/html from the article link page matching the regular expression becomes the filtered web page. The default uses the regular expression Here are a couple example general references on regular expressions: JavaScript method: You enter JavaScript in the box. The last value will be used as the filtered web page. This must evaluate to a string. The JavaScript is evaluated in a sandbox. The following variables are available: getElementsByClass("","html",linkDOM)[0].innerHTML; or linkHTML; Note that external CSS is not downloaded in either method. JavaScript on the page is not run, which may make some aspects of the page unavailable. |