experts exchange

By smk Last update Jan 18, 2011 — Installed 9,385 times.

useragent: greasemonkey can?

in
Subscribe to useragent:  greasemonkey can? 4 posts, 3 voices



socialism ha... User
FirefoxWindows

Can greasemonkey be used to change the UserAgent for a site? I've been reading EE with UserAgent switcher -- as extensions are written in JS I'd wager yes.

Can you take the tweaking the the next level.. in a new extension... to spoof referer like RefSpoof does? Each site sees itself root domain as the referer. I don't like helping sites learn how I found them. I believe it contributes to link whoring and keyword spamming.

 
smk Script's Author
FirefoxWindows

the script doesn't make any requests, it simply hides some useless things in experts exchange, and moves some things to make the site clearer
so i don't think the site will get the Greasemonkey referer

 
khopesh Scriptwright
X11

Actually, yes. EE does indeed take the UserAgent handed by GM's requests (as noted by smk, this script doesn't make any though). This means that you can indeed fill in the answers. I do it in my Experts-Exchange Answers script.

As to actually changing the User Agent more globally ... while my EE script does this, it's not the best solution since it requires loading the page TWICE; once before GM triggers (GM won't do a thing until a page is fully loaded), then once to fetch the content served to the spoofed UA, then more logic to fill the page with the newly fetched content.

 
smk Script's Author
FirefoxWindows

khopesh wrote:
As to actually changing the User Agent more globally

I don't actually understand the point of doing it though, as experts-exchange doesn't have checks if you are using greasemonkey. Anyway, since they already provide the answers, what'll be the point?

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel