surf

Mahdi's build of surf
git clone git://mahdi.pw/surf.git
Log | Files | Refs | README | LICENSE

commit 1bfda445acda48a3df57414f1f5ce0a225da9588
parent 6aaaeb72675cf3db70a09649f86fd8b703f4d6b6
Author: Christoph Lohmann <[email protected]>
Date:   Wed, 31 Oct 2012 21:25:14 +0100

Adding a useragent parameter to surf.
Diffstat:
Msurf.1 | 4++++
Msurf.c | 5++++-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/surf.1 b/surf.1 @@ -10,6 +10,7 @@ surf \- simple webkit-based browser .RB [-r\ scriptfile] .RB [-s] .RB [-t\ stylefile] +.RB [-u\ useragent] .RB [-v] .RB [-x] .RB "URI" @@ -41,6 +42,9 @@ Disable Javascript .B \-t stylefile Specify the user stylefile. .TP +.B \-u useragent +Specify the user stylefile. +.TP .B \-v Prints version information to standard output, then exits. .TP diff --git a/surf.c b/surf.c @@ -919,7 +919,7 @@ void usage(void) { fputs("surf - simple browser\n", stderr); die("usage: surf [-c cookiefile] [-e xid] [-i] [-p] [-r scriptfile]" - " [-s] [-t stylefile] [-v] [-x] [uri]\n"); + " [-s] [-t stylefile] [-u useragent] [-v] [-x] [uri]\n"); } void @@ -967,6 +967,9 @@ main(int argc, char *argv[]) { case 't': stylefile = EARGF(usage()); break; + case 'u': + useragent = EARGF(usage()); + break; case 'x': showxid = TRUE; break;