¿ CMO IGNORATOR v1.1 ?
features:
totally removes a users threads from the recent topics list
totally removes a users posts from within threads
totally removes posts that quote a user you ignored!
*new* ignore specific threads by thread ID number
// ==UserScript==
// @id chipmusic.org-63fa3839-fb4d-4d0f-af4c-d9d81021e302@scriptish
// @name cmo ignorator
// @version 1.1
// @namespace
// @author
// @description
// @include http://chipmusic.org/*
// @run-at document-end
// ==/UserScript==
/* put user names and thread ID numbers e.g. :
var users = ["Puke_Flytalker", "Space_Cadet_Zhir", "sandneil"];
var threads = [12663, 12674, 12581]; */
var users = [];
var threads = [];
function ignorate (elements,names,regex) {
for (var e = 0; e < elements.length; e++) {
for (var u = 0; u < names.length; u++) {
var re = new RegExp(regex.replace("__NAME__", names[u]));
if (re.test(elements[e].innerHTML)) {
elements[e].style.display = "none"; }}}}
ignorate(document.getElementsByClassName("post"),users,'<li class="username">.*?>__NAME__</a></li>');
ignorate(document.getElementsByClassName("post"),users,'<div class="quotebox"><cite>__NAME__ wrote:</cite>');
ignorate(document.getElementsByClassName("main-item"),users,'<span class="item-starter">by <cite>__NAME__</cite>');
ignorate(document.getElementsByClassName("main-item"),threads,'<a href="http://chipmusic.org/forums/topic/__NAME__/');
achieve zen today
Last edited by sandneil (Nov 13, 2013 2:02 pm)