User Javascript changing moronic attitude ;-)
Friday, April 1, 2005 12:40:13 PM
Some people really don't get it do they??
Ben Goodger http://www.bengoodger.com/weblog/ has some check on his blog that detects what browser you use and if you use something else than Firefox or Safari you get a lame message saying you should download Firefox.
IMO this guy really has missed the point. Browser vendors like Mozilla and Opera has struggled with this kinda moronic attitude for ages and now this guy that is a Mozilla developer goes and do the same thing.
We'll we have a User Javascript that corrects the information on the page.
Stick this in your user javascript file and have a look :-)
[PS This is not officially sanctioned by opera, but is funny anyways]
if( location.href == 'http:\/\/www.bengoodger.com\/weblog\/' ) {
window.opera.addEventListener(
'BeforeScript',
window.foobar = function (e) {
if(e.element.text.match(/opera/i)) {
e.element.text = "document.write(\'















Ole Kasperfractalgp # Friday, April 1, 2005 12:40:13 PM
olli # Friday, April 1, 2005 12:40:13 PM
Rijk # Friday, April 1, 2005 12:40:13 PM
Dennis-Hawks # Friday, April 1, 2005 12:40:13 PM
Does not work for me, checked everything for failures, i.e. right paths, and so on. Copy and pasted to my user.js, downloaded from Rijk page, in which I also copy&pasted other js-codes found there.
Dennis-Hawks # Friday, April 1, 2005 12:40:13 PM
scipio # Friday, April 1, 2005 12:40:13 PM
if(window.location.href.indexOf('www.bengoodger.com')>-1){
window.opera.addEventListener('BeforeScript',function(ev){if (ev.element.text.indexOf('else if (navigator.userAgent.indexOf("Firefox")')>-1 ) {ev.element.text=ev.element.text.replace('else if (navigator.userAgent.indexOf("Firefox")','else if (navigator.userAgent.indexOf("Opera")');}},false);
}
olli # Friday, April 1, 2005 12:40:13 PM
Daniel O'ConnorCloCkWeRX # Friday, April 1, 2005 12:40:13 PM
MY GOD! SOMEBODY STOP HIM!
olli # Friday, April 1, 2005 12:40:13 PM
Mark 'Tarquin' Wilton-Jonestarquinwj # Friday, April 1, 2005 12:40:13 PM
Opera and Mozilla (and by the same token, Safari and the other standards-oriented browsers) struggled against the problems caused by non-compliant websites, by IE-ONLY-ism. Their paths may be different, but their goal is very similar in terms of standards compliance. Opera and Mozilla/Firefox should be standing together to help improve the Web, and to clean up some of the rubbish that IE dominance has left behind.
But for a Firefox developer to dismiss Opera deliberately with a lie like that is just insulting. It belittles the work that Opera have put into the developement of the browser. I, for one, am not impressed with a childish message like the one that normally appears on that site. The response in this journal entry is a reminder of that. And as Olli says, it is written on a very specific date ....
scipio # Friday, April 1, 2005 12:40:13 PM
olli # Friday, April 1, 2005 12:40:13 PM
scipio # Friday, April 1, 2005 12:40:13 PM
olli # Friday, April 1, 2005 12:40:13 PM
icare # Friday, April 1, 2005 12:40:13 PM
being an Opera user...:D
João EirasxErath # Friday, April 1, 2005 12:40:13 PM