BlueCat Address Manager Hover Address Type

Modify all address type images to show the type in text on hover over in BlueCat Address Manager

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name        BlueCat Address Manager Hover Address Type
// @namespace   *
// @description Modify all address type images to show the type in text on hover over in BlueCat Address Manager
// @include     */app*
// @license		MIT
// @version     2
// @grant       none
// @copyright   2018, Marius Galm
// @icon        https://www.bluecatnetworks.com/wp-content/uploads/2018/03/cropped-bluecat-favicon-32x32.png
// ==/UserScript==

if (document.readyState === "interactive" ) {
    var ins = document.querySelectorAll("img");

    for (var i = 0; i < ins.length; i++) {
        var image = ins[i];
        if (image !== undefined) {
            // odd, shouldn't happen
            if (image.src.indexOf("pawn_glass_red.gif") > -1) {

                image.title = "Network IP / Broadcast";
            } else if (image.src.indexOf("pawn_glass_yellow.gif") > -1) {
                image.title = "Gateway";
            } else if (image.src.indexOf("pawn_glass_blue.gif") > -1) {
                image.title = "Static";
            } else if (image.src.indexOf("pawn_glass_green.gif") > -1) {
                image.title = "Reserved";
            } else if (image.src.indexOf("pawn_glass_white_new_attention.gif") > -1) {
                image.title = "DHCP Free";
            } else if (image.src.indexOf("pawn_glass_blue_new.gif") > -1) {
                image.title = "DHCP Allocated";
            } else if (image.src.indexOf("pawn_glass_green_new.gif") > -1) {
                image.title = "DHCP Reserved";
            } else if (image.src.indexOf("pawn_glass_white.gif") > -1) {
                image.title = "Unassigned";
            } else if (image.src.indexOf("pawn_glass_white_exclude.gif") > -1) {
                image.title = "DHCP Exclude";
            } else if (image.src.indexOf("pawn_glass_white_new.gif") > -1) {
                image.title = "Unassigned (DHCP)";
            }
        }
        //console.log(ins[i]);
    }
}