Stop Microsoft
Miscellaneous => Technical Support => Topic started by: GenuineAdvantage 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?
-
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/
-
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!
-
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: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)"
;)
-
It's not working for me:(
-
It's not working for me:(
it works for me...
maybe there's something overriding it in ~/.elinks/elinks.conf ...
-
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.
-
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.
-
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?
-
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.
-
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.
-
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.
-
here it is
http://twiki.iwethey.org/twiki/bin/view/Main/UserAgentString#How_to_set_user_agent
-
For FF you don't need plugin ... just change prefs.js in ~/.mozilla/firefox/#####.default/prefs.js
-
here it is
http://twiki.iwethey.org/twiki/bin/view/Main/UserAgentString#How_to_set_user_agent (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".
-
The config line was right, it's just has to be in certain spaced indent for some reason. What the Hell?
...it's right there in the gui menu, just not in the place stated before. I don't know how I missed it. That's what impatience gets you.
Setup> Options Manager> Protocols> HTTP> User-agent identification