Fix dsl sbc yahoo com with User JavaScript
Hallvord who works for Opera has discovered and posted a fix to allow Opera to work with dsl.sbc.yahoo.com.
Yahoo has a long history of blocking Opera for no reason. One might even mistake them for MSN.
Did Opera ever not work correctly at Yahoo? Not that anyone is aware of. And if so, it has been a long time now. Back in December 2003 it was known that Opera could work with Yahoo if you just managed to fool Yahoo into thinking that you were not using Opera.
Shame on Yahoo for being against the freedom to choose your own browser.
Fortunately now that we have User JavaScript, we can solve many of these problems.
Personally, I don’t know anything about JavaScript except that it causes problems a lot of the time (popups and other annoyances) but is often required by brain-dead sites which care more about control than users. (Use JavaScript to add functionality, not as a requirement.) I don’t plan to learn much JavaScript. But the cool thing is that Opera lets me fix things by using tips from other smart people.
In addition to Hallvord’s fix, someone also suggested this:
if (document.domain.match(/^(dsl\.)?sbc\.yahoo\.com$/)) {
window.operaOld = window.opera;
window.opera = null;
}
which works for me.
Update: Also: see another important consideration below in the comments section, including a link to another, possibly better, solution.
One Response to “Fix dsl sbc yahoo com with User JavaScript”
on 26 Sep 2005 at 9:42 pm # Lee Harvey
Be very careful about installing User JS scripts that delete or nullify the window.opera object, since doing so may inadvertently impact other User JS scripts installed on your system.
After all, the window.opera object provides some very useful functions to User JS scripts. And if other User JS scripts rely on window.opera functions and/or assume window.opera exists without checking first, they will certainly break.
To determine if these scripts interfere with other User JS scripts, simply view your JavaScript console inside Opera (Tools> Advanced> JavaScript console) after installing them.
In the meantime, if you want a non-destructive User JS script that is functionaly equivalent for the purpose of accessing dsl.sbc.yahoo.com, then please check here http://my.opera.com/Lee_Harvey/blog/show.dml/29043.
Enjoy.
{{TjL writes: Lee Harvey is a well-known Opera user. I’ll be checking out his solution to this problem and encourage others who need to fix this problem to do so as well.}}