Chat Resizer

Automatically resizes the chat to a specified value.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
KongScripts
日安装量
0
总安装量
7
评分
0 0 0
版本
1.2.4
创建于
2016-03-06
更新于
2016-03-06
大小
9.6 KB
许可证
MIT
适用于

Original Author: Ventero
Original Host: http://userscripts-mirror.org/scripts/show/70040
Created: "05/12/09"
Updated: 15/09/12
Total installs on original host as of 06/03/16: 3,460
Working Status: Obsolete

Dev notes:

Automatically resizes the chat to a specified value. This value can be overriden for single games.


Version: 1.2.4

Overview of chat-commands:
/size width height userlist-height
Sets a specific chat-size for the game you're currently playing which overrides the default-size.
Specifying a userlist-height is optional, it defaults to 100px.
Examples: /size 500 600 100, /size reset, /size show
/defaultsize width height userlist-height
Sets a default chat-size for all games.
Specifying a userlist-height is optional, it defaults to 100px.
Examples: /defaultsize 900 900 150, /defaultsize reset, /defaultsize show
/centergame
Toggles if the game is vertically centered or aligned to the chat's bottom.
Detailed description:
This script resizes the chat whenever you load a game. You can specify the desired chat's width/height/userlist-height for the current game with /size width height userlist-height. To delete the specified values, just type "/size reset".

If you don't have a size specified for the game you're currently playing, this script resizes the chat to a default size (height: 600px, width: 500px, userlist-height: 100px). If there's not enough space to change the chat's width to the default value, it's resizing it as far as possible while leaving a little bit of blank space on both sides of the chat/game.
These default values can be changed using /defaulsize width height userlist-height. Typing "/default reset" will reset the default values to 600/500/100.

/default show and /size show show the current values.

You can also specify if you want to center the game relative to the chat, or align it to the chat's bottom using /centergame.

Version-history:

1.2.2, 1.2.3, 1.2.4: Bug fixes
1.2.1: Check if the quicklinks bar exists before using its height
1.2: Fixed the chat commands in Chrome
1.1.6: Script doesn't run on non-game-pages anymore (and fixed a problem with that in 1.1.6.1 :X)
1.1.5: Added sizzlemctwizzle's Auto Updater.
1.1.4: Recent Kong-update broke this script, has been fixed now.
1.1.3: Minor style improvements
1.1.1: Fixed a typo which broke /defaultsize
1.1: Added /defaultsize show and /size show (thanks to musicdemon for the idea)
1.0: Initial release (02/27/10)

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