如何在 w3m 终端中使用 Javascript?
我发现文本浏览器 w3m 在我看来是迄今为止最好的。 然而,主要问题是Javascript。
当我使用 Stackoverflow 时,我根本看不到评论。
我不确定让 Javascript 在终端中存在什么限制。
如何为终端启用至少部分 JavaScript 以使注释可见?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Javascript 需要 Javascript 解释器。 如果您的用户代理不理解特定类型的脚本,它就会忽略它。 要获得最低水平的支持,请尝试 w3m-js 扩展名。
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.
不幸的是 w3m 根本不支持 JavaScript。
Unfortunately w3m doesn't support JavaScript at all.
你可以尝试 browsh - https://github.com/browsh-org/browsh
太棒了, 一个完全交互式、实时和现代的基于文本的浏览器,呈现给 TTY 和浏览器
它与我测试的所有网站都很好用,
你可以使用 docker run --rm -it browsh/browsh 来运行它,
然后当它启动时使用 CTRL + L ,它会聚焦在 URL 栏上,让你浏览到您想要的任何地方。
您可以在这里找到更多键绑定 - https://www.brow.sh/docs/keybindings/
You can try browsh - https://github.com/browsh-org/browsh
It's amazing, A fully interactive, real-time, and modern text-based browser rendered to TTYs and browsers
It works great with all sites i tested,
You can run it using
docker run --rm -it browsh/browsh
,Then when it starts use
CTRL + L
and it will focus on the URL bar, and let you browse to where ever you'd like.You can find more keybindings here - https://www.brow.sh/docs/keybindings/
尝试 Conkeror
Masi —— 我建议看一下 Conkeror,它基本上是带有 Emacs 键绑定的 Firefox。 如果你想要一个带有 Javascript 的键盘驱动 UI,
这是你最好的选择:
http://conkeror.org
http://www.saltycrane.com/blog/2008/01/firefox-for-emacs-users/
首页可以进行改造,但是一旦你下载并安装它,你会想知道为什么你以前从未尝试过它......
(如果你是 vim 用户,你可以尝试 vimperator)。
Try Conkeror
Masi -- I'd recommend taking a look at Conkeror, which is basically Firefox with Emacs keybindings. If you want a keyboard driven UI with Javascript,
it's your best bet:
http://conkeror.org
http://www.saltycrane.com/blog/2008/01/firefox-for-emacs-users/
The frontpage could use a makeover, but once you download and install it you'll wonder why you never tried it before...
(and if you're a vim user, you could try vimperator).