No CyberClub Menus

By ZingoTech Labs Last update Dec 21, 2006 — Installed 177 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0
//
// No CyberClub Menus
// No more annoying pop-down menus in Playboy's CyberClub.
//
// Version 02 (20 December 2006)
// ZingoTech Labs
//
// Notes:
//
// * 
//
// Changelog:
//
// 01:  - Initial release.
//
// 02:  - Instead of searching all tables, only search for
//        table with ID "navTable" or "navtable".
//
// ==UserScript==
// @name            No CyberClub Menus
// @namespace       tag:zingospace-002
// @description     No more annoying pop-down menus in Playboy's CyberClub.
// @include         http://cyber.playboy.com/*
// ==/UserScript==
//

(function()
{

    table = document.getElementById("navtable");
    if(table == null)
    {
        table = document.getElementById("navTable");
        if(table == null)
        {
            return;
        }
    }

    anchors = table.getElementsByTagName("a");
    if(anchors)
    {
        aLength = anchors.length;
        for(aCtr = 0; aCtr < aLength; aCtr++) 
        {
            anchor = anchors[aCtr];

            // only modify anchors with a "linkX" id
            // within the navtable
            if(anchor.id.toLowerCase().indexOf("link") == 0)
            {
                // remove the listeners
                anchor.removeAttribute("onMouseOver");
                anchor.removeAttribute("onMouseOut");
            }
        }
    }

})();