doubanResize

resize douban short comment

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

/* ==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;
    }
}