doubanResize

resize douban short comment

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

/* ==UserStyle==
@name           doubanResize
@namespace      mailto: [email protected]
@version        0.1.2
@author         fish-404
@description    resize douban short comment
@license        MIT
==/UserStyle== */

@-moz-document domain("douban.com") {
    /* 发现豆瓣的textarea使用的样式太多了... 或许直接使用 textarea tag 作为选择器更好? */
    .comments-app-wrapper textarea /* 笔记的回复 */
    , .txd textarea /* 豆列的回复 */
    , .comment-warapper textarea /* 小组的回复 */
    , .basic-textarea /* 豆列的描述 */ 
    , text.comment /* 书影音短评 */
    , .textarea_basic /* 豆瓣书籍 音乐的信息编辑框 */
    ,#isay-cont
    { 
        resize: vertical;
    }
    
    /* 隐藏书影音短评弹出框阴影 */
    #overlay {
        display: none;
    }
    
    /* 书影音短评弹出框上移 */
    #dialog {
        top: 37% !important;
    }
    
    /* 书影音短评弹出框短评区域高度调整 按350字高度调整 */
    #dialog textarea {
        height: 178px;
    }
}