Wrap Texts in a Comment List

Nico Live

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name            Wrap Texts in a Comment List
// @name:ja         一覧の長文コメントを折り返す
// @namespace       https://greasyfork.org/users/19523
// @version         0.3
// @description     Nico Live
// @description:ja  ニコニコ生放送でコメント一覧のコメントをコメント番号にまで折り返して表示する
// @match           https://live2.nicovideo.jp/watch/*
// @grant           none
// ==/UserScript==

(function () {
  var style = document.createElement('style');
  style.type = 'text/css';
  style.appendChild(document.createTextNode('' +
    '.___comment-text___2cPL0 {' +
      'white-space: initial;' +
      'display: initial;' +
    '}' +
    '.___table-row-base___S4V65, .___table-row___27ghe {' +
      'display: table;' +
      'width: 99%;' +
    '}' +
    '.___table-cell___3E0rV {' +
      'width: 99% !important;' +
      'display: inherit;' +
    '}' +
    '.___comment-number___2Qws3 {' +
      'display: initial;' +
    '}' +
    ''));
  document.getElementsByTagName('head')[0].appendChild(style);
})();