// ==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 // @downloadURL https://update.greasyfork.icu/scripts/25275/Custom%20Header.user.js // @updateURL https://update.greasyfork.icu/scripts/25275/Custom%20Header.meta.js // ==/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) | "+section1_label+" "+ "| "+section2_label+" "+ "| "+section3_label+" "+ "| "+section4_label+" "+ "| "+section5_label+" "+ "| "+section6_label+" "+ "| "+section7_label+" |"; document.getElementById('panel').innerHTML= document.getElementById('panel').innerHTML.replace(regex,revised);