On 2007-08-20, [EMAIL PROTECTED] 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 [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
