Custom Header

Adds various shortcuts to the HF toolbar. (Leave strings blank to exclude)

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

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το 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       Custom Header
// @author xadamxk
// @namespace  https://github.com/xadamxk/HF-Scripts
// @version    1.2.1
// @description  Adds various shortcuts to the HF toolbar. (Leave strings blank to exclude)
// @match      *://hackforums.net/*
// @copyright  2016+
// @iconURL https://raw.githubusercontent.com/xadamxk/HF-Userscripts/master/scripticon.jpg
// ==/UserScript==
var section1_label = "Lounge";
var section1_fid = "25";

var section2_label = "RANF";
var section2_fid = "2";

var section3_label = "Web Browsers";
var section3_fid = "247";

var section4_label = "Groups";
var section4_fid = "53";

var section5_label = "iOS & iDevices";
var section5_fid = "137";

var section6_label = "";
var section6_fid = "";

var section7_label = "";
var section7_fid = "";

var regex = /\(Unread(.*?)\)/;
var revised = "(Unread $1) | <a href='forumdisplay.php?fid="+section1_fid+"'>"+section1_label+" </a>"+
    "| <a href='forumdisplay.php?fid="+section2_fid+"'>"+section2_label+" </a>"+
    "| <a href='forumdisplay.php?fid="+section3_fid+"'>"+section3_label+" </a>"+
    "| <a href='forumdisplay.php?fid="+section4_fid+"'>"+section4_label+" </a>"+
    "| <a href='forumdisplay.php?fid="+section5_fid+"'>"+section5_label+" </a>"+
    "| <a href='forumdisplay.php?fid="+section6_fid+"'>"+section6_label+" </a>"+
    "| <a href='forumdisplay.php?fid="+section7_fid+"'>"+section7_label+" </a>|";
document.getElementById('panel').innerHTML= document.getElementById('panel').innerHTML.replace(regex,revised);