Karaoke Scene's Karaoke Forums https://mail.karaokescenemagazine.net/forums/ |
|
Ignore certain threads? https://mail.karaokescenemagazine.net/forums/viewtopic.php?f=13&t=22761 |
Page 1 of 1 |
Author: | chrisavis [ Sat Dec 17, 2011 6:42 am ] |
Post subject: | Ignore certain threads? |
Is there a way to mark a thread to be ignored? I would like to mark certain threads to not show up when I select "View Unread Posts". -Chris |
Author: | mckyj57 [ Sat Dec 17, 2011 6:49 am ] |
Post subject: | Re: Ignore certain threads? |
chrisavis wrote: Is there a way to mark a thread to be ignored? I would like to mark certain threads to not show up when I select "View Unread Posts". -Chris I have a GreaseMonkey script that ignores certain forums. It could be modified to ignore threads. Code: // ==UserScript==
// @name Ignore certain forums // @namespace http://www.inkaraoke.com/karaoke/ // @description Ignore certain forums // @include http://*karaokescene.com/forums/search* // ==/UserScript== (function() { var results = document.evaluate("//a", document, null, XPathResult.ANY_TYPE, null); var resultNodes = []; var block = new Array; block['TheLoungeOffTopic'] = 1; block['KJsONLY'] = 1; block['KaraokeLegalitiesPiracyandmore'] = 1; block['NewbieIntro'] = 1; block['IntroductionNewbies'] = 1; block['NewMusicRequestampReleased'] = 1; // block['Announcements'] = 1; block['Events'] = 1; block['SingersForum'] = 1; block['SingersShowcaseDiscussions'] = 1; var ct = 0; while (aResult = results.iterateNext()) { resultNodes.push(aResult); } for (var i in resultNodes) { var containingRow = resultNodes[i].parentNode.parentNode.parentNode; var user = resultNodes[i].innerHTML; user = user.replace(/\W+/g, ''); // alert("Found forum " + user); // containingRow.setAttribute('class', user); if(block[user]) containingRow.style.display='none'; } })(); |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |