Chat Resizer

Automatically resizes the chat to a specified value.

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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.