diff options
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/functions.js b/functions.js index baee89558..78e3bbaae 100644 --- a/functions.js +++ b/functions.js @@ -396,3 +396,24 @@ function popupHelp(tid) { } } + +function hideOrShowFeeds(doc, hide) { + + var css_rules = doc.styleSheets[0].cssRules; + + for (i = 0; i < css_rules.length; i++) { + var rule = css_rules[i]; + + if (rule.selectorText == "ul.feedList li.feed") { + if (!hide) { + rule.style.display = "block"; + } else { + rule.style.display = "none"; + } + } + + } + +} + + |