Counter-Strike 2

Counter-Strike 2

Not enough ratings
Steamcommunity-Cleanup
By vee
A UserScript that enhances the Steam forums by filtering discussion topics and comments.
   
Award
Favorite
Favorited
Unfavorite
Intro
Since the removal of Community Moderators the quality in the Steam and some game forums has taken a dip.
Unlike other game developers who actively moderate their community forums Valve has taken a very hands-off approach not only with the in-game player moderation but also with their community forums.

The moderation in the Counter-Strike 2 forums is slow and lacks bite.
Repeat offenders aren't adequately punished resulting in users begging for in-game skins, users posting fake giveaways and advertising their trades in non-trade related subforums. Even the overwhelming amount of topics in different languages doesn't seem to warrant language-specific subforums in the eyes of Valve. Multi-accounting and ban evasions aren't punished and unless a user explicitly breaks the forum guidelines Steam's content moderators don't intervene which enables subtle trolling, provocations and overall unhealthy discussions.

This UserScript is designed to enhance the Steam forums by filtering discussion topics and comments.

Features
Hides topics based on:
  • Blocked users
  • Custom keywords defined by you
  • Language¹
  • Spam patterns
  • Trade-related intent¹

Hides comments based on:
  • Blocked users
  • Quoting blocked users
  • Language¹
  • Spam patterns

Additional features:
  • Adds two toggle buttons for filtering visibility:
    • All - Toggles the visibility of all filtered topics and comments
    • Blocked - Toggles the visibility of topics and comments only from blocked users
                       (and comments quoting blocked users if that option is enabled)
  • Adds a tooltip when hovering over a post allowing you to assign nicknames to users via the action menu
────────────
¹ automatically disabled on trading forums

Installation
NOTE: This is a UserScript and only works in web browsers. It does not work with the official Steam client or the in-game overlay.

https://github.com/veehawt/Steamcommunity-Cleanup

UserScript Setup: Basic Settings
Hide Trade Related Topics

Options: true / falsedefault: true
Topics containing trade-related matches will be hidden unless set to false.

This setting is by default enabled (true) to hide posts that advertise trades in General Discussions instead of the appropriate trading sections. If you'd prefer to see trade-related content outside of Trading Forums you can disable this filter by setting it to false.



Counter-Strike 2 Filters in Other Forums

Options: true / falsedefault: false
Counter-Strike 2 related filtering will not apply outside of CS2 forums unless set to true.

Some filters in this script were specifically designed to detect trade-related topics in the Counter-Strike 2 forums. These include common keywords like weapon names, skin finishes, wear levels, float values and StatTrak labels which help accurately identifying trade intent.

However, these terms may carry different meanings in other game forums or Steam communities. For example, while vanilla in CS2 might refer to a plain skin of a knife, in other contexts it could refer to unmodded playthroughs or just your favourite ice cream flavour.

If you're not interested in CS2 but want to use this script elsewhere, you can set this option to true and customize the filters (regexes) mentioned above to suit your game’s terminology.



Hide Quotes from Blocked Users

Options: true / falsedefault: false
Comments quoting blocked users remain visible unless set to true.

As the name hideBlockedUserQuotes suggests, this setting controls whether comments that quote blocked users are hidden.
If you want to completely avoid seeing blocked users, including replies that reference them,
set this to   true. This can be useful for avoiding trolls or simply maintaining a cleaner discussion experience without reminders of users you've blocked.
You can still unhide these comments at any time by using the All or Blocked toggle buttons.



Don't Filter Friends' Comments

Options: true / falsedefault: false
Comments from friends will be filtered like any other comment unless set to true.

A simple user setting that exempts all you friends' comments from filtering.
Whether they quote a blocked user while hideBlockedUserQuotes is enabled or they write in a language you've hidden, enabling this setting (true) ensures their messages always remain visible.

UserScript Setup: Custom Keywords
NOTE: Currently there's no way to automatically save or merge your changes with future updates. If you've made a lot of customizations consider backing them up seperately or they will be lost when the script is updated.


Custom keywords
Define your own keywords to filter out topic titles you don’t want to see. Topic titles containing these keywords will be automatically hidden and marked with a red background. You can unhide them at any time by toggling the All button.
Keywords prefixed with   //   will be ignored and won’t hide any topic titles.

Important: Each keyword must be surrounded by double quotes ( " ) and end with a comma ( , ) if you're adding multiple keywords as shown in the example below. If the formatting is incorrect, the script will stop working.

Example:

UserScript Setup: Language
Languages
To hide a language: Ensure its line is not commented out (i.e., do not add   //   in front of the line). The script will then filter out and mark any content in that language with a red background.

To display a language: Comment out its line by adding   //   in front. This tells the script to ignore that language and keeps topics and comments containing that language visible.

You can unhide filtered topics and comments at any time by clicking the All button which toggles visibility for everything the script filtered.

Example:

UserScript Setup: Spam & Trade
Spam and Trade filters work just like Language filters.
To enable or disable specific keywords, simply comment or uncomment their lines the same way (using //).
This allows you to easily tailor the filtering to match what you personally consider spam or off-topic noise.

Outro
The UserScript works across all Steam forums, though it was primarily created with the Counter-Strike 2 forums in mind.
In its default configuration it filters roughly one-third of all active topics in CS2's General Discussions with minimal false positives.


Support & Feedback
The script is provided as-is. I do not offer individual support.
If you run into issues, please refer to this guide.
For bug reports, feature requests or suggestions, you can reach out here: https://github.com/veehawt/Steamcommunity-Cleanup/issues

3 Comments
Valerie 11 Jul @ 2:55pm 
Do yourself a favor, block ALL them in that group + use this guide. Never have to be bothered by those idiots again. They are probably the sole reason why a script like this even needs to be made.
vee  [author] 11 Jul @ 2:40pm 
I'm aware of the group but this isn't the place to talk about them.
Internetuser (She/Her) 11 Jul @ 2:04pm 
Just to let you know a certain group of chatbot hosters are trying to false report this

https://cs2bus.com/groups/CS2LEADERS