Custom Header

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

  1. // ==UserScript==
  2. // @name Custom Header
  3. // @author xadamxk
  4. // @namespace https://github.com/xadamxk/HF-Scripts
  5. // @version 1.2.1
  6. // @description Adds various shortcuts to the HF toolbar. (Leave strings blank to exclude)
  7. // @match *://hackforums.net/*
  8. // @copyright 2016+
  9. // @iconURL https://raw.githubusercontent.com/xadamxk/HF-Userscripts/master/scripticon.jpg
  10. // ==/UserScript==
  11. var section1_label = "Lounge";
  12. var section1_fid = "25";
  13.  
  14. var section2_label = "RANF";
  15. var section2_fid = "2";
  16.  
  17. var section3_label = "Web Browsers";
  18. var section3_fid = "247";
  19.  
  20. var section4_label = "Groups";
  21. var section4_fid = "53";
  22.  
  23. var section5_label = "iOS & iDevices";
  24. var section5_fid = "137";
  25.  
  26. var section6_label = "";
  27. var section6_fid = "";
  28.  
  29. var section7_label = "";
  30. var section7_fid = "";
  31.  
  32. var regex = /\(Unread(.*?)\)/;
  33. var revised = "(Unread $1) | <a href='forumdisplay.php?fid="+section1_fid+"'>"+section1_label+" </a>"+
  34. "| <a href='forumdisplay.php?fid="+section2_fid+"'>"+section2_label+" </a>"+
  35. "| <a href='forumdisplay.php?fid="+section3_fid+"'>"+section3_label+" </a>"+
  36. "| <a href='forumdisplay.php?fid="+section4_fid+"'>"+section4_label+" </a>"+
  37. "| <a href='forumdisplay.php?fid="+section5_fid+"'>"+section5_label+" </a>"+
  38. "| <a href='forumdisplay.php?fid="+section6_fid+"'>"+section6_label+" </a>"+
  39. "| <a href='forumdisplay.php?fid="+section7_fid+"'>"+section7_label+" </a>|";
  40. document.getElementById('panel').innerHTML= document.getElementById('panel').innerHTML.replace(regex,revised);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址