MM Rooster Filter

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

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, Greasemonkey alebo Violentmonkey.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie, ako napríklad Tampermonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, % alebo Violentmonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey alebo Userscripts.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie, ako napríklad Tampermonkey.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie správcu používateľských skriptov.

(Už mám správcu používateľských skriptov, nechajte ma ho nainštalovať!)

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

(Už mám správcu používateľských štýlov, nechajte ma ho nainštalovať!)

Autor
rift0nix
Denne inštalácií
0
Celkový počet inštalácií
1
Hodnotenie
0 0 0
Verzia
3.2.1
Vytvorené
13.03.2026
Aktualizované
13.03.2026
Veľkosť
15,7 KB
Licencia
MIT
Spustiť na

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.