Author Topic: Elinks user agent  (Read 4710 times)

GenuineAdvantage

  • Member
  • **
  • Posts: 372
  • Kudos: 449
Elinks user agent
« on: 23 June 2006, 06:46 »
How do you change the user agent in elinks? Is there a simple way to edit a config file, or does it have to be compiled that way. In either case, how?


piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Elinks user agent
« Reply #1 on: 23 June 2006, 06:51 »
Quote from: GenuineAdvantage
How do you change the user agent in elinks? Is there a simple way to edit a config file, or does it have to be compiled that way. In either case, how?
for mozilla-based browsers:
http://prefbar.mozdev.org/ that extension can do it.. but it's one fecking ugly toolbar, and you can't remove it like you can the web-dev toolbar etc.

maybe there's a better extension..
EDIT: https://addons.mozilla.org/firefox/59/
"What you share with the world is what it keeps of you."
 - Noah And The Whale: Give a little love



a poem by my computer, Macintosh Vigilante
Macintosh amends a damned around the requested typewriter. Macintosh urges a scarce design. Macintosh postulates an autobiography. Macintosh tolls the solo variant. Why does a winter audience delay macintosh? The maker tosses macintosh. Beneath female suffers a double scum. How will a rat cube the heavier cricket? Macintosh calls a method. Can macintosh nest opposite the headache? Macintosh ties the wrong fairy. When can macintosh stem the land gang? Female aborts underneath macintosh. Inside macintosh waffles female. Next to macintosh worries a well.

GenuineAdvantage

  • Member
  • **
  • Posts: 372
  • Kudos: 449
Re: Elinks user agent
« Reply #2 on: 23 June 2006, 06:59 »
Not for Firefox, for the Elinks browser on linux, since some people seem to know a bit about linux. pardon me, I sometimes forget to not be vague!


piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Elinks user agent
« Reply #3 on: 23 June 2006, 07:07 »
Quote from: GenuineAdvantage
Not for Firefox, for the Elinks browser on linux, since some people seem to know a bit about linux. pardon me, I sometimes forget to not be vague!
Oh, heh, that was absolutely not your fault. I was not on this planet when I read your post, I accidentally posted my reply in another thread, quoting another person, and only realized afterwards :/

Anyhow:
Code: [Select]
declan@declan-desktop:~$ grep -i agent /etc/elinks/elinks.conf
    ## protocol.http.user_agent
    #  Change the User Agent ID. That means identification string, which
    #  a standard for new textmode user agents, so that the webmasters can
    #  Use " " if you don't want any User-Agent header to be sent at all.
    set protocol.http.user_agent = "ELinks/0.10.6-1ubuntu3-debian (textmode; %s; %t-%b)"
;)
"What you share with the world is what it keeps of you."
 - Noah And The Whale: Give a little love



a poem by my computer, Macintosh Vigilante
Macintosh amends a damned around the requested typewriter. Macintosh urges a scarce design. Macintosh postulates an autobiography. Macintosh tolls the solo variant. Why does a winter audience delay macintosh? The maker tosses macintosh. Beneath female suffers a double scum. How will a rat cube the heavier cricket? Macintosh calls a method. Can macintosh nest opposite the headache? Macintosh ties the wrong fairy. When can macintosh stem the land gang? Female aborts underneath macintosh. Inside macintosh waffles female. Next to macintosh worries a well.

GenuineAdvantage

  • Member
  • **
  • Posts: 372
  • Kudos: 449
Re: Elinks user agent
« Reply #4 on: 23 June 2006, 08:36 »
It's not working for me:(


piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Elinks user agent
« Reply #5 on: 23 June 2006, 08:52 »
Quote from: GenuineAdvantage
It's not working for me:(

it works for me...

maybe there's something overriding it in ~/.elinks/elinks.conf ...
"What you share with the world is what it keeps of you."
 - Noah And The Whale: Give a little love



a poem by my computer, Macintosh Vigilante
Macintosh amends a damned around the requested typewriter. Macintosh urges a scarce design. Macintosh postulates an autobiography. Macintosh tolls the solo variant. Why does a winter audience delay macintosh? The maker tosses macintosh. Beneath female suffers a double scum. How will a rat cube the heavier cricket? Macintosh calls a method. Can macintosh nest opposite the headache? Macintosh ties the wrong fairy. When can macintosh stem the land gang? Female aborts underneath macintosh. Inside macintosh waffles female. Next to macintosh worries a well.

GenuineAdvantage

  • Member
  • **
  • Posts: 372
  • Kudos: 449
Re: Elinks user agent
« Reply #6 on: 23 June 2006, 09:48 »
Nope, I tried deleting that too. Did it the first time. I think it might have something to do with the distribution, perhaps it has that disabled. I'll try compiling from source.


H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
Re: Elinks user agent
« Reply #7 on: 23 June 2006, 18:41 »
Usually it is marked override ... like for firefox it's

user_pref("general.useragent.override", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060426 Firefox/1.5.0.4");

put in prefs.js

I've never managed to change it successfully in any other browser except mozilla.

GenuineAdvantage

  • Member
  • **
  • Posts: 372
  • Kudos: 449
Re: Elinks user agent
« Reply #8 on: 23 June 2006, 23:25 »
I uninstalled elinks and installed from a compile. Same darn thing. Tried changing the root elinks.conf too, nothing. It must be something somewhere else. I notice on that code it's v0.10.6, I am using v.0.11.1, maybe that's the problem?


piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Elinks user agent
« Reply #9 on: 23 June 2006, 23:29 »
You could search through the code to find where it's set, shouldn't be too hard - search for whatever the user agent's already set to and then change it.
"What you share with the world is what it keeps of you."
 - Noah And The Whale: Give a little love



a poem by my computer, Macintosh Vigilante
Macintosh amends a damned around the requested typewriter. Macintosh urges a scarce design. Macintosh postulates an autobiography. Macintosh tolls the solo variant. Why does a winter audience delay macintosh? The maker tosses macintosh. Beneath female suffers a double scum. How will a rat cube the heavier cricket? Macintosh calls a method. Can macintosh nest opposite the headache? Macintosh ties the wrong fairy. When can macintosh stem the land gang? Female aborts underneath macintosh. Inside macintosh waffles female. Next to macintosh worries a well.

davidnix71

  • Member
  • **
  • Posts: 760
  • Kudos: 501
Re: Elinks user agent
« Reply #10 on: 30 June 2006, 02:31 »
Using about:config doesn't work completely in Firefox, either. You have to use the plugin.

I found this looking for your answer :

http://72.14.209.104/search?q=cache:eVknPbVLJYgJ:www.linuxexposed.com/hacking/forget-your-password-be-google!-2.html+elinks+user+agent+Ubuntu&hl=en&gl=us&ct=clnk&cd=4&client=firefox-a

The author has posted the user-agent strings for three bots. You may be able to gain access to some reg only sites by pretending to be a bot.

GenuineAdvantage

  • Member
  • **
  • Posts: 372
  • Kudos: 449
Re: Elinks user agent
« Reply #11 on: 30 June 2006, 02:43 »
I can already put any old thing for a user agent in firefox. I was looking to change it in elinks. I find apps in linux that announce your kernel  to be annoying. I tried looking through the source but couldn't find it. Even compiling it appearently the user agent is added by the the distro when configuring, so searching the exact text didn't find it.


davidnix71

  • Member
  • **
  • Posts: 760
  • Kudos: 501

H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
Re: Elinks user agent
« Reply #13 on: 30 June 2006, 05:06 »
For FF you don't need plugin ... just change prefs.js in ~/.mozilla/firefox/#####.default/prefs.js

GenuineAdvantage

  • Member
  • **
  • Posts: 372
  • Kudos: 449
Re: Elinks user agent
« Reply #14 on: 30 June 2006, 05:22 »
Quote from: davidnix71
here it is

http://twiki.iwethey.org/twiki/bin/view/Main/UserAgentString#How_to_set_user_agent

Same thing from before the thread. And as this weaki states Setup>Network Options, I see no such thing in the elinks menu, then again the weaki states "links".