How can you use Javascript in terminal for w3m?

30,703

Solution 1

Javascript requires a Javascript interpreter. If your user-agent doesn't understand a particular kind of scripting, it simply ignores it. To get a minimal level of support, try the w3m-js extension.

Solution 2

Unfortunately w3m doesn't support JavaScript at all.

Share:
30,703
Michal aka Miki
Author by

Michal aka Miki

Vacare.

Updated on July 25, 2022

Comments

  • Michal aka Miki
    Michal aka Miki almost 2 years

    I found the text browser w3m which is the best so far in my opinion. However, it is main problem is Javascript.

    I cannot see comments at all in Stackoverflow when I use it.

    I am not sure what is the restriction in letting Javascript to be in terminal.

    How can you enable at least some of JavaScript for Terminal such that comments are visible?

  • Michal aka Miki
    Michal aka Miki about 15 years
    How can you use that code in terminal? Where do I need to put it to run w3m nicely?
  • coder14
    coder14 about 15 years
    You'll have to download, compile and install the program w3m-js and all the libraries it requires.
  • bgoodr
    bgoodr about 8 years
    OP said "letting Javascript to be in terminal" so does Conkeror work under a terminal or does it require an X connection?
  • bgoodr
    bgoodr about 8 years
    web.archive.org/web/20101124213553/http://abe.nwr.jp/w3m/… is the most recent non-dead Archive link for abe.nwr.jp/w3m/w3m-js.html but even the archive link is not that helpful since links on that page do not really go anywhere.
  • bgoodr
    bgoodr over 7 years
    @anonymous2, That is why I believe that Conkeror does not apply to the OP's question. I believe the intent is that the web content needs to be "rendered" into terminal windows such as Linux consoles and dumb terminals that, by design, should not require an X connection.