Trivially simple script to automatically decrease the horizontal margins on the chat and video containers on hextube. By default both left and right margins are 15px per container. I set them to 1px for a 56px gain in chat and video viewing area. It’s free real estate.

// ==UserScript==
// @name        New script hexbear.net
// @namespace   Violentmonkey Scripts
// @match       https://live.hexbear.net/c/movies*
// @grant       none
// @version     1.0
// @author      -
// @description 3/1/2024, 10:31:12 PM
// ==/UserScript==
(function() {
    'use strict';
      document.getElementById("chatwrap").style.paddingLeft="1px";
      document.getElementById("chatwrap").style.paddingRight="1px";
      document.getElementById("videowrap").style.paddingLeft="1px";
      document.getElementById("videowrap").style.paddingRight="1px";
})();
What is ViolentMonkey?

ViolentMonkey is an open source browser extension and small alternative to GreaseMonkey or TamperMonkey. It can run custom JavaScript in your browser for you automatically to modify page behavior. If you install the extension you can create a new script and copy and paste the one I wrote above. Always beware of installing untrusted scripts that you don’t understand.

  • Grebgreb [he/him]@hexbear.netM
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    With css enabled it works but it doesn’t work when css is disabled. Is it not possible to have a script like this work without css enabled?

        • neo [he/him]@hexbear.netOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          9 months ago

          At this point I think you need to show me what options/settings you are referring to. Because maybe we aren’t talking about the same thing.

          • Grebgreb [he/him]@hexbear.netM
            link
            fedilink
            English
            arrow-up
            1
            ·
            9 months ago

            pic

            Under the options tab up top, unticking the “channel css” box will disable the black background and rainbow names. I think the default scheme is grey so it should all be grey instead.

              • Grebgreb [he/him]@hexbear.netM
                link
                fedilink
                English
                arrow-up
                1
                ·
                edit-2
                6 months ago

                I’m not sure what changed but I can’t get the script to work on the cytube anymore. I tried a few things a week or so ago and couldn’t figure it out, do you have any idea on what could’ve changed or what might work to fix it?

                • neo [he/him]@hexbear.netOP
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  6 months ago

                  For me it still is working. I’m using the ViolentMonkey extension with Firefox.

                  What did you try?

                  • Grebgreb [he/him]@hexbear.netM
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    ·
                    6 months ago

                    I’m also using violentmonkey on Firefox. I just manually updated violentmonkey and it still doesn’t work. I disabled a bunch of extensions because in the past they’ve caused problems with hextube but so far I haven’t found the one breaking it if that’s what’s causing it.