Skip navigation.

Prepare!

Lee Harvey's Zombie Hit Parade

UserJS to allow access to Yahoo! portals

, , , , ,

The following non-destructive* User JavaScript allows full access to certain Yahoo! portals. Namely, dsl.sbc.yahoo.com, express.rogers.yahoo.com, avatar.yahoo.com, and avatars.yahoo.com...

Download or view the User JS file

[B]if (document.domain.match(/^(dsl\.)?sbc\.yahoo\.com$/) ||
    document.domain.match(/^(www\.)?avatar(s)?\.yahoo\.com$/) ||
    document.domain.match(/^(express\.)?rogers\.yahoo\.com$/)) {
   window.opera.defineMagicFunction("yg_Browser",
      function() {
         var nav = window.navigator;
         this.agt = nav.userAgent.toLowerCase();
         this.major = parseInt(nav.appVersion);
         this.ns = false;
         this.ns6 = false;
         this.ns4up = false;
         this.op = false;
         this.fb = true;
         this.dom = 1;
         this.ie = 0;
         this.ie4up = false;
         this.ie5 = false;
         this.gk = 1;
         this.fx = true;
         this.sf = false;
         this.win = true;
         this.mac = false;
      });
}[/B]

*NOTE: Non-destructive means it should not impact other User JS scripts that may be installed on your system.

For those of you using either of these Yahoo! portals, enjoy!

UserJS to show Independent.co.uk articlesMy filter.ini entries

Comments

luomat 27. September 2005, 12:59

Does this need to be saved in a certain file with a certain filename in the UserJS folder, or does Opera just load them all and not care what the filename is?

virtuelvis 27. September 2005, 15:19

You'd probably be better off with the fix on http://www.broadbandreports.com/forum/remark,14444509

Lee_Harvey 27. September 2005, 15:59

TjL: Any *.js file in your UserJS folder will get executed as a user JavaScript. If you want to temporarily disable a script from running, simply rename the file extension to *.txt or something.

Arve: As for the 'fix' presented on broadbandreports, while it may be simplified, it breaks many other User JS files that rely on the window.opera object functionality. I would never recommend a destructive script such as that. In fact, it even breaks your own scripts on UserJS.org, such as: http://userjs.org/scripts/general/fixes/disable-sifr Check your JavaScript console.

hallvors 13. October 2005, 21:00

Fixes for the Yahoo portals are now in browser.js. It tries to be a bit less destructive by restoring the opera object on page load - it will still break many user scripts though. Hope it still works..

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.