AFK-command

Adds an /afk-command to chat

目前為 2016-03-06 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
KongScripts
評價
0 0 0
版本
1.9.11
建立日期
2016-03-06
更新日期
2016-03-06
尺寸
6.5 KB
授權條款
未知
腳本執行於

Original Author: Ventero
Original Host: http://userscripts-mirror.org/scripts/show/48936
Created: 06/04/13
Updated: 06/04/13
Total installs on original host as of 06/03/16: 4,551
Working Status: Obsolete

Dev notes:

Adds an /afk-command to Kongregate's chat, which will flag you as afk. When flagged as afk, you automatically send a notice to the user who whispered you.



Version: 1.9.11

Note: If you're using Firefox or Chrome, you need my framework-script in order to make this script work! So make sure it is installed when installing this one!

The default-text of this notice is "[AFK] I am currently AFK", but can be customized by using the /afkmessage-command. To turn off the flag, just type /afk again. By default, the flag gets removed whenever you send a message. To turn off that behaviour, just type /afktoggle.

Added an /autoafk-command: The script now automatically sets you away after a given amount of time without sending a chat-message (including whisper).
By default, this feature is enabled and set to 15 minutes.
You can change the time until it sets you AFK by sending a message like /autoafk X, where X is an integer representing the minutes until the script should set you AFK (e.g. "/autoafk 5" will set you AFK after 5 minutes without sending a message).
To disable it, just write /autoafk 0.
The script also saves the time, so you don't have to change it each time you load up the chat.

Verison 1.9.10: Fix call of overwritten function
Version 1.9.8: A chat update some time ago made the script reply with your afk message to whispers even when the received whisper was an AFK message itself
Version 1.9.7: Your AFK flag won't get removed on disconnect anymore
Version 1.9.6: Fixed a bug which didn't reset the auto-AFK-timer after sending a room-message.
Version 1.9.5: Fixed problems caused by the new messaging features of Kong's chat.
Version 1.9.2: Minor change for compatibility with latest Chrome.
Version 1.9.1: Fixed a bug which made it impossible to go un-AFK when typing /back
Version 1.9.0: Added auto-updater and fixed a bug which may have led to infinite recursion when having the script installed more than once
Version 1.8.4: Added Chrome 4-support, requires the new version of my framework-script
Version 1.8.3: Fixed a few other minor bugs. Script also now works in Chrome >3.0.195.*
Version 1.8.2: Fixed a bug where the script under certain circumstances wouldn't automatically set you AFK after reconnecting to a disconnected session.
Version 1.8.1: Fixed a bug where the script would sometimes still send out the AFK-message after typing /back. Thanks to MossyStump for reporting this bug!
Version 1.8: Added /autoafk-command
Version 1.7: Added integration of the built-in /afk- and /back-commands
Version 1.6: Added Chrome 3-support
Version 1.5: Script works now with Firefox, Opera and Chrome again
Version 1.3: Compatibility-fix. Make sure my framework-script is installed
Version 1.2: Changed some stuff so it's still compatible to the new versions of my scripts
Version 1.1: Fixed a bug which broke room-switching.
Version 1.0: Added compatibility to all of my other scripts.
Thanks to Jabor for the idea of adding a prefix!

Copyright (c) 2009-2012 Ventero, licensed under MIT/X11 license.