spoiler tmd

postul #0 in spoiler

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name       spoiler tmd
// @description  postul #0 in spoiler
// @version    0.3
// @description  enter something useful
// @include     *torrentsmd.com/forum.php*
// @include     *torrentsmd.*/forum.php*
// @include     *torrentsmoldova.*/forum.php*
// @copyright   2012+, XXN
// @icon         http://s017.radikal.ru/i432/1308/7b/34fa18a96812.png
// @namespace https://greatest.deepsurf.us/users/213
// ==/UserScript==

if (cc = document.getElementById('forumPosts_first').getElementsByClassName('comment')[0])
    { cc.innerHTML= 
      '<div id="my_click"  style="font-weight: bold;">[Spoiler]</div>'
    + '<div id="my_spoiler" style="display: none;">' +cc.innerHTML +'</div>'       
   
    document.getElementById('my_click').onclick = function (e)
    {    el=document.getElementById('my_spoiler');           
      if ( el.style.display=='none') {el.style.display= ''    }
      else                          {el.style.display= 'none'}
    }
    $j('div.sp-head').toggleClass('jsClickEvAttached',false); $j('div.sp-head').unbind()
    $j('div.sp-foot').toggleClass('jsClickEvAttached',false); $j('div.sp-foot').unbind()
    initSpoilers()
    }