From cbfb086feab8d06e8184f7b8d809780404d091bf Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 21 Mar 2009 13:21:25 +0100 Subject: Show/hide spoiler tags on VN pages --- static/f/script.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'static') diff --git a/static/f/script.js b/static/f/script.js index 7c28f060..fa92382d 100644 --- a/static/f/script.js +++ b/static/f/script.js @@ -477,6 +477,32 @@ DOMLoad(function() { break; } + // VN tag spoiler options + if(x('tagops')) { + l = x('tagops').getElementsByTagName('a'); + for(i=0;i= 0) + l[i].className = l[i].className.replace(/tsel/, ''); + } + l = x('vntags').getElementsByTagName('span'); + for(i=0;i= l[i].className.substr(6, 1) && l[i].className.indexOf('hidden') >= 0) + l[i].className = l[i].className.replace(/hidden/, ''); + } + return false; + }; + } + // Javascript tabs if(x('jt_select')) jtInit(); -- cgit v1.2.3