Re: Converting webpage on the fly

"Kelly Jones" <[email protected]>
Newsgroups gmane.comp.web.elinks.user
Message-ID <[email protected]>
On 11/29/08, Thomas Adam <[email protected]> wrote:
> 2008/11/29 Kelly Jones <[email protected]>:
>> How can I convert this on the fly to something like:
>>
>> <div
>> id="ctl00_ctl00_AbsMP_BaseMP_mailbox1_gridMessages_ctl07_divSubject"
>> class="divSubject">
>>
>> <a href="/mailbox/view-message.aspx?[big-long-message-id]">
>
> Use the pre_format_html() hook in one of the supported scripting
> languages that ELinks provide.   I personally have an example on how
> to do that in contrib/ for ruby -- look in the ELinks source code.

Thanks, Thomas, this is fantastic!!!

I'd been scripting w/ Lua and never knew I could use Ruby (my favorite
language) w/ elinks (my favorite browser). But I recompiled w/ --with-ruby,
and all is good now. I guess it pays to look at those non-default
options when doing "sh configure"!

Question: when I want to reload my hooks.lua file, I just do "," for
the Lua console and then dofile("hooks.lua").

How do I reload my hooks.rb file? I often make changes + don't want to
restart elinks every time.

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.