MM Rooster Filter

Replaces EACH message character in mattermost with an emoji (1 char = 1 emoji)

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
rift0nix
Installationen heute
0
Installationen gesamt
1
Bewertungen
0 0 0
Version
3.2.1
Erstellt am
13.03.2026
Letzte Aktualisierung
13.03.2026
Größe
15,7 KB
Lizenz
MIT
Wird angewandt auf

MM Rooster Filter (Tampermonkey)

Tampermonkey userscript (distributed via GreasyFork) that replaces each message character with an emoji mask.

The script supports:

  • Remote JSON configuration
  • Local config cache with TTL
  • Fallback selectors for unstable DOM markup

Quick Start

  1. Install Tampermonkey in your browser.
  2. Install this script from GreasyFork.
  3. Open https://community.mattermost.com/ and ensure the script is enabled.
  4. You can not use the script as-is (default remote config is already preconfigured in DEFAULT_REMOTE_CONFIG_URL). You need your own config, click Tampermonkey extension icon on that page and run menu command Set remote config URL. Paste your own public raw JSON URL and reload the page. Example config: just set your targets (mm logins) on line 6.
  5. If you use a private/self-hosted Mattermost server, add a custom userscript match for that domain in Tampermonkey settings (for example: https://your-mm-domain.example.com/*).

Features

  • Per-user start date filtering (targets)
  • Configurable replacement emoji (replacementEmoji)
  • Configurable DOM selectors with fallback arrays (selectors)
  • Safe startup flow:
    1. load cached config (if available)
    2. use defaults if cache is missing
    3. refresh from remote when TTL expires

Configuration model

The script expects this config shape:

  • configVersion: number
  • remoteConfigUrl: string
  • remoteFetchTimeoutMs: number
  • remoteCacheTtlMs: number
  • replacementEmoji: string
  • targets: object (username -> YYYY-MM-DD)
  • selectors:
    • postContainer: string[]
    • postRoot: string[]
    • avatar: string[]
    • time: string[]
    • messageBody: string[]
    • sameUserClass: string

Default remote config URL (currently used by the script out of the box):

Remote config hosting

You can host JSON on any URL that returns public JSON over HTTPS:

  • GitHub Gist (raw URL)
  • GitHub repository raw file URL
  • S3 / Cloudflare R2 / CDN

Remote URL configuration:

  • Preferred way: use Tampermonkey menu command Set remote config URL (stored via GM_setValue).
  • Fallback/default URL is defined by DEFAULT_REMOTE_CONFIG_URL.

Console commands

Available commands:

  • roosterUndo()
  • roosterStats()
  • roosterTest("hello")
  • roosterConfigInfo()
  • roosterReloadConfig()

Notes

  • Config cache uses localStorage with key from CACHE_KEY.
  • Remote config URL (from UI menu) is stored in Tampermonkey value storage key CONFIG_URL_STORAGE_KEY.
  • If remote config fails to load, the script keeps active cached/default config.