您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes it so that column goes onto new line for long names
当前为
- // ==UserScript==
- // @name KAT - Limit Reputation Width
- // @namespace LimitReputationWidth
- // @version 1.04
- // @description Makes it so that column goes onto new line for long names
- // @match http://kat.cr/user/*/reputation*
- // @match https://kat.cr/user/*/reputation*
- // ==/UserScript==
- $("td.left").css("max-width", "625px");
- $("td.left").css("word-wrap", "break-word");
- /** Wrap mode on (true) / off (false) - on by default
- *
- * If on, the torrent name will continue on the next line - works in most cases
- * If off, only the first 630 pixels of the column/title is visible, anything extra is simply hidden
- */
- var wrap = true;
- if (wrap == true)
- {
- var max = "750px";
- if ($(".sideBar").is(':visible')) { max = "550px"; }
- $(".widgetButton").each(function()
- {
- if ($(this).width() > $(this).parent().width() - 60)
- {
- $(this).css("max-width", max);
- $(this).css("word-wrap", "break-word");
- $(this).css("margin-bottom", "3px");
- $(this).addClass("wrap");
- $(this).addClass("block");
- }
- });
- }
- $(".nowrap").removeClass("nowrap");