您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Watch Twitch chat for certain users, any @mentions of you, or certain watched words, and play a sound/alert when one is posted. HUGE thanks to ihavebeenasleep for his script AntiKappa, which was very helpful in building this one.
Ever wanted to be alerted when you're @mentioned, when one of your friends posts a message, or when someone mentions a giveaway?
This will play a sound and show a popup alert (both optional) for any of those, and is customizable for the users or words you want to watch in any Twitch chat window.
If you have any problems of suggestions, open a new issue on GitHub: https://github.com/jakebathman/TWatch/issues
Happy streaming!
var TWatch = {
A bit below that, you'll see three things that you can change:
watchTheseUsers: [
'user1', 'user2',
],
watchTheseWords: [
'word1', 'word2',
],
mentionTimeout: 0,
wordTimeout: 0,
userTimeout: 0,
Add your own items to the user and words list, making sure that they have '
quotes around them and are separated by a comma.
The Timeout
settings are okay as 0, and you can read the comments in the file to learn more about what they do.
If you updated this script from an older version, the "config" section below might not have your stuff anymore.
This is a crappy side effect of Tampermonkey scripts, and there's not a very good way to handle it.
BUT: We might be able to get them back. Follow these steps:
var Twatch = {
config:
{
// Paste it here, removing any duplicate keys like "watchTheseUsers" that already exist
},
...
}
Hopefully this works, and I'm sorry if it didn't. Again, there's not a very good way to handle user configs when a script needs updating.
If you have trouble, find me on Twitter @jakebathman or open an issue on GitHub at https://github.com/jakebathman/TWatch/issues