RemoveLJLicensePopup

remove license popup on LJ

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το 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 RemoveLJLicensePopup
// @description remove license popup on LJ
// @version 0.3
// @author germes
// @license MIT
// @match http://*.livejournal.com/*
// @match https://*.livejournal.com/*
// @run-at document-end
// @grant none
// @namespace https://greasyfork.org/users/115181
// ==/UserScript==


    function gebi(id) {
        return document.getElementById(id);
    }

    function gebcn(className) {
        return [].slice.call(document.getElementsByClassName(className));
    }

    function removeNode(nodeElement) {
        if (nodeElement) {
            nodeElement.parentNode.removeChild(nodeElement);
        }
    }

    var
        popup = gebcn('flatblue rutos'),
        overlay = gebcn('b-fader');

    if (popup.length) {
        removeNode(popup[0]);
    }

    if (overlay.length) {
        removeNode(overlay[0]);
    }