Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Best text-based browser for userscripting?

Name: Anonymous 2011-03-01 13:37

Hi /prog/,

Hope you don't mind if the question is beginner related or bringing back over-discussed themes.

What should I use if I want to customize how the Web is displayed, on a per-page basis? Browsing text content and navigating in POST fields would be the only feature. Hiding things, moving others... Platform is /dev/tty and BBCode or Javascript are not needed. Should I look at some open source lynx/elinks/w3m and use or write a module? (contribute) Emacs/W3? (I'd rather not) Or should I just fail at writing my own html/css parser? (autism+procrastination)

Do you, riders, have advices?

Name: Anonymous 2011-03-01 13:40

sed and awk.

Name: Anonymous 2011-03-01 13:40

THIS THREAD IS NOW A CONTEST FOR PROGRAMMING A TEXT-BASED BROWSER

Name: only trying to help 2011-03-01 17:49

why bother?

can't afford a computer that runs X?
want to feel like you belong to an elite group of hackers?
bored and just looking for something (anything) to do?

honestly... you don't sound like a man who can get things done: i think your procrastination will get the best of you. i mean, i see you dreaming about writing an HTML/CSS parser... but seriously, what's the last non trivial program you wrote?

perhaps you should start by writing a snake clone?

Name: Anonymous 2011-03-01 19:10

>>4
Yes, all of that. And I'm blind too...

Now, it's easier for me to use tmux on remote machines and have panes, with the file I'm currently editing, text documentation, and anything monitored... It's also a very convenient setting for smaller screens.

I find myself using google in text mode quite often, and it takes too many keystrokes to browse results or refine the search. I don't really want to code something (hence the joke about supposed procrastination). An interface for simple scripting would do (a greasemonkey for text browser).

Also, you're arrogant. Text is the most efficient way to transmit information, just look at one of those things called a book. Mine don't have pictures or ads or embedded videos.

Name: fair enough 2011-03-02 4:14

1) use a http proxy on your home computer that sits between the web and your TTY browser (use some established browser like elinks or whatever it is blind people use nowadays).

2) make some script in whatever language you want and have your proxy run all traffic through it. get this script to rewrite HTML pages in whatever way you need. you could have this script first check the domain name and look through the FS to see if a custom script for that domain exists.

----

you can find Node.JS http proxies easily... i don't think you'll need anything more powerful than that since it will only be serving 1 user through the proxy. IIRC node.js also does DOM etc so you should have no problem rewriting whatever to whatever.
bump this thread if you need more help getting set up.

also, use scroogle.com instead of google.com
(this advice is...not just for blind people)

Name: Anonymous 2011-03-02 4:16

also, there's a GreaseMonkey proxy on cpan:
http://search.cpan.org/dist/HTTP-Proxy-GreaseMonkey/

Name: Anonymous 2011-03-02 4:19

>>7
No Perl, ``please".

Name: Anonymous 2011-03-02 4:53

>>8
>>7
And that's why you cannot help people.

Name: Anonymous 2011-03-02 4:58

>>9
how was i unable to help?

Name: Anonymous 2011-03-02 8:51

>>10
Because he cannot be helped.

Name: Anonymous 2011-03-02 9:48

>>6,7

The Perl proxy is a very good suggestion. Thanks. I already use Scroogle with a simple bash alias, but Google might have some other functionalities that should not be looked upon.

Don't change these.
Name: Email:
Entire Thread Thread List