MM Rooster Filter

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

लेखक
rift0nix
दैनिक इंस्टॉल
0
एकूण इंस्टॉल
1
रेटिंग
0 0 0
आवृत्ती
3.2.1
बनवली
2026-03-13
अपडेट केली
2026-03-13
आकार
15.7 KB
License
MIT
यांवर लागू होते:

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.