1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

[Download] UserScript to make the BeamNG forums full width

Discussion in 'General Discussion' started by shanie, Dec 27, 2024.

  1. shanie

    shanie
    Expand Collapse

    Joined:
    Dec 3, 2021
    Messages:
    55
    Why?

    If you're like me and have limited horizontal screen-space (e.g, vertical tabs, square 4:3 secondary monitor), you might have found it a little uncomfortable to use the BeamNG forums.

    By default, the forums only use 80% of your screen width. This is great, since you don't have to move your eyes or mouse as much when reading or interacting with content.

    It can, however, make for a slightly cramped feel in the situations mentioned above. Thats why I created this simple userscript, which expands the forums to 97% of your screen width!

    I've also expanded various sidebars & columns to make them feel less cramped, making better use of this new space.

    Personally, I find this a lot more comfortable.



    Installation
    1. Install a userscript manager like Tampermonkey, Violentmonkey or Greasemonkey (Firefox only)

    2. In the next step, your userscript manager will automatically open a new tab - follow the instructions on-screen to install it.

    3. Click here to to install the script.

    4. If you have any BeamNG forum pages open, refresh them to view the changes.


    More information
    • To toggle the script easily, you can pin your userscript manager extension to your browser toolbar. Click on it and you should see a menu allowing you to toggle the script on or off. Refresh any open BeamNG forum pages to apply changes.

    • To verify this userscript is safe, you can view its source code here (or by scrolling down during Step 2 of the installation)

    • This userscript is fully compatible with all "sticky" forum preferences (sticky navigation, sticky sidebar, sticky userbar).

    • I'm aware of an issue where the large announcement panels at the top of the page sometimes have the start of the next one visible. To work around this, just press CTRL + F5.

    • No, this userscript will not apply a dark theme to your forums. If you'd like to do that, install the Dark Reader extension.

    • If you encounter any issues with this userscript, don't hesitate to let me know in this thread!


    Previews

    Click the button below to reveal some before/after comparisons.

    I've left my browser UI visible to better highlight the use-case of this userscript.

    Click an image to view it in full-screen, then use the left/right arrows to compare.































     
    #1 shanie, Dec 27, 2024
    Last edited: Mar 2, 2025
    • Like Like x 5
  2. figs074

    figs074
    Expand Collapse

    Joined:
    Apr 18, 2024
    Messages:
    869
    Very useful,tried it and it is very good. :)
     
    • Like Like x 1
  3. figs074

    figs074
    Expand Collapse

    Joined:
    Apr 18, 2024
    Messages:
    869
    Found out how to edit violentmonkey scripts
    ONG.png YTPCHINA.png
    Very cool that it has the feature of changing the percentage of the forum gui
     
  4. figs074

    figs074
    Expand Collapse

    Joined:
    Apr 18, 2024
    Messages:
    869
    Bump but unfortunately not working for me. Any idea why? Using violentmonkey
     
  5. shanie

    shanie
    Expand Collapse

    Joined:
    Dec 3, 2021
    Messages:
    55
    Strange, it's still working on my end with Tampermonkey on Firefox. I did notice a while ago that some specific /threads/ pages consistently wouldn't work with it.

    Is it not working on all pages or some specific threads for you?
     
  6. figs074

    figs074
    Expand Collapse

    Joined:
    Apr 18, 2024
    Messages:
    869
    All threads unfortunately
     
  7. shanie

    shanie
    Expand Collapse

    Joined:
    Dec 3, 2021
    Messages:
    55
    Could you check if max-width is being correctly overriden to 97%?

    1. CTRL + SHIFT + I on keyboard

    2. CTRL + F then type pageWidth and press enter to check the value
     
  8. figs074

    figs074
    Expand Collapse

    Joined:
    Apr 18, 2024
    Messages:
    869
    Capturadetela2025-02-28221645.png
    Shows this.
     
  9. shanie

    shanie
    Expand Collapse

    Joined:
    Dec 3, 2021
    Messages:
    55
    Thanks for the pic! It seems its not being applied properly and remains at 80%.

    Were you using Violentmonkey all this time, and it suddenly broke? Or did you switch extensions.

    I actually haven't used Violentmonkey before, not sure if syntax differs with it. Either way, I'll test with it and see what I can do.
     
  10. figs074

    figs074
    Expand Collapse

    Joined:
    Apr 18, 2024
    Messages:
    869
    It suddenly broke. I just used to reinstall and it would temporarily work until some days ago when not even reinstalling worked
     
  11. shanie

    shanie
    Expand Collapse

    Joined:
    Dec 3, 2021
    Messages:
    55
    Interesting... I've not had those issues on Tampermonkey. Currently, I don't know if its a Violentmonkey issue, but it might be worth using Tampermonkey for now (if you're fine with that). Thanks for the detailed reports!
     
  12. figs074

    figs074
    Expand Collapse

    Joined:
    Apr 18, 2024
    Messages:
    869
    Same thing with Tampermonkey..
     
  13. shanie

    shanie
    Expand Collapse

    Joined:
    Dec 3, 2021
    Messages:
    55
    Which browser are you using? (version would be ideal too)

    I've just pushed an update with an attempt to resolve your issue. Check for updates in your userscript manager, and see if that resolves the issue.
     
  14. figs074

    figs074
    Expand Collapse

    Joined:
    Apr 18, 2024
    Messages:
    869
    Firefox - 135.0.1 (64-bits)
    Update also doesn't work.
    --- Post updated ---
    Don't know if it's really relevant or will fix anything in the long run, but I found out removing the "_" in "_width" fixes it apparently (though it reverts to normal after going to another page)
    Fix.png Width.png
     
  15. shanie

    shanie
    Expand Collapse

    Joined:
    Dec 3, 2021
    Messages:
    55
    Thanks for your suggestion! I've just pushed another update to account for this. Let me know if it works for you.

    --- Post updated ---

    It seems that a separate issue may have caused the script to not work for you.

    An oversight on my part led to the script only matching https://www.beamng.com URLs, but not https://beamng.com URLs.

    I've just fixed this and pushed an update. Let me know if that works for you!

    I've also:
    1. Expanded the latest unread post overview column on the forum homepage

    2. Expanded the sidebar on user-profile pages. Hardly necessary, but now easier on the eyes in my opinion.

    3. Favoured main content on individual mod pages by not expanding the sidebar there.
     
    #15 shanie, Mar 2, 2025
    Last edited: Mar 2, 2025
    • Like Like x 1
  16. figs074

    figs074
    Expand Collapse

    Joined:
    Apr 18, 2024
    Messages:
    869
    Well that fixed it lol thanks mate, keep it up! ;)
     
    • Like Like x 1
  17. shanie

    shanie
    Expand Collapse

    Joined:
    Dec 3, 2021
    Messages:
    55
    0.2.1 update: Fixed an issue where sidebar width would not compact itself on certain mod pages
     
    • Like Like x 1
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice