Hack Forums
Userscript: Remove HF Background Opacity - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: General Topics (https://hackforums.net/forumdisplay.php?fid=7)
+--- Forum: World (https://hackforums.net/forumdisplay.php?fid=445)
+---- Forum: The Lounge (https://hackforums.net/forumdisplay.php?fid=25)
+---- Thread: Userscript: Remove HF Background Opacity (/showthread.php?tid=6300011)



Userscript: Remove HF Background Opacity - xadamxk - Jun 10, 2025

I found it incredibly hard to read this thread with the font/background/opacity changes. This userscript makes the background solid again if it bothered anyone else. It should work on every page but feel free to modify as needed.

Code
// ==UserScript==
// @name         HFBackgroundDeposition
// @version      0001
// @description  Makes posts readable again - removes post opacity
// @author       You
// @match        https://hackforums.net/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=hackforums.net
// @grant        none
// ==/UserScript==
(function() {
    'use strict';
    document.head.appendChild(document.createElement('style')).textContent = '.wrapper-content { opacity: unset !important; }';
})();

Screenshot before/after
[Image: 4iAVRjl.png]


RE: Userscript: Remove HF Background Opacity - Rsynced - Jun 10, 2025

Thanks for the share, I may use it, the font is so weird now, it messes with my glasses.


RE: Userscript: Remove HF Background Opacity - xadamxk - Jun 10, 2025

(Jun 10, 2025 05:07 PM)Rsynced Wrote:  Thanks for the share, I may use it, the font is so weird now, it messes with my glasses.

I am not a fan of the font either. If you add this line it should revert the new font

Code
document.head.appendChild(document.createElement('style')).textContent = 'body { font-family: Verdana, Arial, Sans-Serif !important; }';

I'm not sure if this is the best way to tweak styles or not but it seems to work for me


RE: Userscript: Remove HF Background Opacity - xadamxk - Jun 11, 2025

(Jun 10, 2025 05:23 PM)Natha Wrote:  Yeah I just put the following into Stylus. I personally don't want a new font but each to their own. I enjoy the classic MyBB fonts.

Code
body {
  font-family: Verdana, Geneva, sans-serif;
}

Never heard of Stylus before. Sounds better than a js approach. Thanks


RE: Userscript: Remove HF Background Opacity - Phantom_NiNja - Jun 11, 2025

I like the new changes. I thought I was seeing things.

the background is of some kind of moons in space with dust and rocks.

The font reminds me of the terminal texts. ✌😎✌