useragent: greasemonkey can?
![]() ![]() |
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. |
![]() ![]() |
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
|
![]() |
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. |
![]() ![]() |
khopesh wrote: 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? |


