spoiler tmd

postul #0 in spoiler

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.

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

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==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://greasyfork.org/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()
    }