MM Rooster Filter

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

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Autore
rift0nix
Installazioni giornaliere
0
Installazioni totali
1
Valutazione
0 0 0
Versione
3.2.1
Creato il
13/03/2026
Aggiornato il
13/03/2026
Dimensione
15,7 KB
Licenza
MIT
Applica a

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.