LongMsgBuster

Collapse or shrink tall messages

目前為 2016-12-27 提交的版本,檢視 最新版本

作者
luishendrix92
評價
0 0 0
版本
3
建立日期
2016-12-27
更新日期
2016-12-27
尺寸
1.8 KB
授權條款
未知
腳本執行於

This is a script that hides or collapses (deleting them from the DOM) chat messages in the Gitter web application. Sometimes people will post messages that cloud the vision of the other users and it can get a bit annoying. This script has been tested on both Chrome with TamperMonkey and Firefox with GreaseMonkey.

Usage on Windows

[Ctrl + Alt + F]

Turns the big messages into a warning with a button to restore the message.

[Ctrl + Alt + G]

Obliterates the message from the DOM tree, making them unrecoverable.

Usage on Mac

[CMD/Control + Option (or Alt) + F]

Turns the big messages into a warning with a button to restore the message.

[CMD/Control + Option (or Alt) + G]

Obliterates the message from the DOM tree, making them unrecoverable.

Options

The script has two constants as of now in the Javascript code:

  • MAX_HEIGHT: The maximum desirable height of Gitter messages (in pixels)
  • WARNING: The HTML paragraph to be displayed when shrinking