[prev in list] [next in list] [prev in thread] [next in thread] 

List:       elinks-users
Subject:    Re: [elinks-users] Hello from a blind person
From:       Grzegorz Adam Hankiewicz <gradha () titanium ! sabren ! com>
Date:       2007-08-21 12:40:16
Message-ID: 20070821124016.GA27411 () geezer
[Download RAW message or body]

On 2007-08-20, angelobeck@floripa.com.br wrote:
> The string:
> </a>
> need to be replaced by:
> </a><br/>
> 
> How can I make that script to replace the page code on the fly?

I'm not much into elinks today, but I remember this was possible
with at least lua scripting. When you activate lua scripting, there
are a few hooks that get called when a page is downloaded, and you
can do some funny things. IIRC the provided hooks.lua contains an
example which reformats some news web page which by default looks
horrible in elinks but with little table modifications looks ok (I
used this feature to remove websites' sidebars which are annoying).

You could do the same but replacing the logic for a little regular
expression substitution in lua looking for the closing tags as you
mentioned. Then you can make it run for just a single site domain
or all incoming web pages.

You will have to get help from somebody else at this point since
I can't provide any code. Besides, what others have said may be
useful too. I use myself the link numbering option because it is
much faster over the slow ssh sessions I'm used to. In my version
I can activate/desactivate link numbering pressing the dot key.
_______________________________________________
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic