Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to change opera "mask as" user agent string

88 views
Skip to first unread message

Yanb

unread,
Feb 15, 2008, 6:23:25 AM2/15/08
to
Hi, is there a possibility to modify the string for "mask as"?

For example mask as firefox is:
Mozilla/5.0 (Windows NT 5.1; U; en; rv:1.8.0) Gecko/20060728 Firefox/1.5.0
but I'd like this for example:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

Some sites do check for FF 2.0. If I had to mask, I don't want to look like IE user... mask as IE usually
works, but it's a question of honour ;-)

Thanks in advance.

Rijk van Geijtenbeek

unread,
Feb 15, 2008, 9:27:39 AM2/15/08
to
Op Fri, 15 Feb 2008 12:23:25 +0100 schreef Yanb <Ya...@whatever.invalid>:

No, that is not possible inside Opera. To use another user-agrent string,
some proxy software would be needed.

--
Rijk

Gemaakt met Opera's revolutionaire e-mailprogramma:
http://www.opera.com/mail/

Lee Harvey

unread,
Feb 15, 2008, 10:18:18 PM2/15/08
to

Yes, it's possible: http://my.opera.com/Lee_Harvey/blog/show.dml/14802

Using your conditions above, save the following (untested) User JavaScript
to a .js file in your UserJS folder...

// Change meaning of =4 value in ua.ini file to ID as Firefox 2.0.0.11
if (navigator) {
var ua = navigator.userAgent;

// If Opera's userAgent matches this, then change it...
if (ua == "Mozilla/5.0 (Windows NT 5.1; U; en; rv:1.8.0) Gecko/20060728
Firefox/1.5.0") {

navigator.oscpu = "Windows NT 5.1";
navigator.vendorSub = "2.0.0.11";
navigator.productSub = "20071127";
navigator.vendor = "Firefox";
navigator.product = "Gecko";
navigator.language = "en";

var ffxPre = "Mozilla/5.0 (Windows; U; ";
var ffxSuf = "; " + navigator.language + "; rv:1.8.1.11) " +
navigator.product + "/" + navigator.productSub + " " + navigator.vendor +
"/" + navigator.vendorSub;
navigator.userAgent = ffxPre + navigator.oscpu + ffxSuf;

}
}


...then "Mask as Firefox" in Opera will change from v1.5.0 to v2.0.0.11

Enjoy.


0 new messages