A Javascript userscript to filter chat commands and other spam from the chat on the Twitch Plays Pokemon stream
Note: This script is incompatible with BetterTTV.
Fast and lightweight way to run the script.
-
Go to the bookmark menu of your browser and add a new bookmark with the title of your choice.
-
Copy the following snippet and paste it into the URL-Field:
javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://jpgohlke.github.io/twitch-chat-filter/chat_filter.user.js';})();
-
Save the Bookmark.
-
From now on, you can just click on that bookmark when you have the TPP-Tab open to enable the script.
Installing the userscript via Greasemonkey will automatically run it everytime you visit the TPP stream.
-
Install the Greasemonkey extension for Firefox.
-
Click this link to navigate to the script URL: https://jpgohlke.github.io/twitch-chat-filter/chat_filter.user.js
-
Greasemonkey will detect the userscript and ask what to do with it. Tell it to "Install" the script.
-
Refresh the page TPP stream page.
Tampermonkey lets you install userscripts in Chrome, similarly to how Greasemonkey does it in Firefox.
-
Install the Tampermonkey extension for Chrome.
-
Click this link to navigate to the script URL: https://jpgohlke.github.io/twitch-chat-filter/chat_filter.user.js
-
Tampermonkey will detect the userscript and will open a new tab. Click on
Install to Tampermonkey
and click Ok. -
Refresh the page TPP stream page.
If you don't want or can't install one of the previously mentioned browser extensions, one possibility is to run the script via the developer console. However, you will need to rerun the script every time you refresh the stream.
-
On the TPP stream page, open your broser's developer console.
- On Firefox, press
Ctrl
+Shift
+K
- On Chrome, press
Ctrl
+Shift
+J
- On Safari, press
Ctrl
+Alt
+I
- On IE9+, press
F12
- On Opera, press
Ctrl
+Shift
+I
- If you are having trouble opening your console, try reading the in depth explanation here
- On Firefox, press
-
Copy the following snippet and paste it into the developer console on the TPP page:
javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://jpgohlke.github.io/twitch-chat-filter/chat_filter.user.js';})();
-
Press
Enter
to run the code.
Version 3.7 (2016/09/12)
- Fix settings menu for updated Twitch UI
Version 3.6 (2016/06/01)
- Fix for updated Twitch UI
Version 3.5 (2016/03/24)
- Fix message filter for updated Twitch UI
Version 3.4 (2016/02/18)
- Filter commands from military input mode
Version 3.3 (2015/10/31)
- Use HTTPS for update and download URLs
Version 3.2 (2015/05/30)
- Fixed new messages not being filtered due to changes in Twitch's code
Version 3.1 (2015/02/12)
- Unbroke bookmarklet
Version 3.0 (2015/02/12)
- Fixed for Twitch's Ember rewrite
- Note: rewriters are temporarily non-functional, to be fixed in future release
Version 2.9 (2014/11/23)
- Fixed slowmode helper
Version 2.8 (2014/08/10)
- Support for Greasemonkey 2.0
- Added Stadium bank bot filter
Version 2.7 (2014/06/16)
- Support new twitch.tv layout
Version 2.6 (2014/05/03)
- Filter Pokemon Stadium betting (e.g. !bet 100 blue)
Version 2.5 (2014/04/30)
- Coordinate inputs for touch screen are now filtered (e.g., 291,372)
Version 2.4 (2014/04/12)
- New twitch.tv layout: settings menu is now together with Twich's own settings menu.
- Slowmode helper does not block sending messages anymore and can be turned off.
- Made the command filter recognize any non-alphabetic separator.
- Removed URL and Spam filters
- "Hide emoticons" command now fully hides messages that only contained emoticons
Version 2.3 (2014/03/28)
- Removed custom ignored-user list.
- More specific donger detection.
- Recognize compound commands (b+left)
Version 2.2 (2014/03/21)
- Improved style of custom filter lists
- Activated filters are now saved between sessions
- Better handling of delays between messages
- Information on script displayed upon loading
Version 2.1 (2014/03/07)
- Fixed userscript support
- Added filter for overly long messages
- Added "no emoticons" restyler
- Added "no colored messages" restyler
Version 2.0 (2014/03/06)
- Countdown timer on the chat button to show slow mode warnings
- Added custom filtering option
Version 1.9 (2014/03/03)
- Updated script to work with both old and new version of the twitch chat