In message <5547fb845eLists@Torrens.org.uk>
"Richard Torrens (lists)" <Lists@Torrens.org.uk> wrote:
>http://www.catbehaviourist.com/sure-feed-microchip-pet-feeder-review/
>
>http://www.zooplus.co.uk/shop/cats/cat_bowls_feeders/feeders/programmable/479534?gclid=CImfsqu3x8oCFUORGwodHCUFYQ
>
>Both display very badly. First site all text is hidden. The source is very
>over-complicated, so I can't see why.
I have a useful little Lua script, called noscript, for use with StrongED that strips out all the
stuff between matching <script ... > and </script> tags. Here it is:
#! lua
io.input (arg[1])
local text = io.read "*all"
io.input ( )
local pat = "<script[^<]*</script>"
io.write ((text:gsub (pat, "")))
Using it on the text of the first webpage produces source for a leaner webpage
that reveals the hidden text. Here is the procedure:
1. Page->View Source in NetSurf
2. Save to some scrap directory.
3. Shift-click to load into StrongED
4. Shift-Drag noscript to apply icon.
5. Save the result and change its type to HTML.
It would be nice if NetSurf could have an apply icon like StrongED, which
could make a single drag action suffice.
--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/
No comments:
Post a Comment