Hide HF logo

Hides the hackforums logo

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το 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         Hide HF logo
// @description  Hides the hackforums logo
// @namespace    hf_hide_logo
// @version      0.1
// @author       Remix
// @require      https://code.jquery.com/jquery-2.1.4.min.js
// @include      http://*.hackforums.net/*
// @include      http://hackforums.net/*
// @grant        GM_getValue
// @grant        GM_setValue
// ==/UserScript==

hide = GM_getValue('hide', false);

if (hide) {
    $("img[src='http://hackforums.net/images/modern_bl/logo_bl.gif']").hide();
}

if (location.href.match(/usercp.php/i)) {
    $('select[name="daysprune"]').after('<br><input type="checkbox" id="hide_logo" name="hide_logo"><span class="smalltext"><label for="hide_logo">Hide logo</label></span>');
    
    var element = $('input[name="hide_logo"]');
    element.css('font-size', '9pt');
    element.css('margin-top', '10px');
    element.attr('checked', hide);

    $('input[name="regsubmit"]').on('click', function() {
        GM_setValue('hide', $('input[name="hide_logo"]').prop('checked'));
    });
}