Cheggit - Hide Signature Images

By Signe Last update Jan 1, 2010 — Installed 275 times.

There are 1 previous version of this script.

// ==UserScript==
// @name            Hide Cheggit Signature Images
// @description     Parses Cheggit torrent and forum pages and removes signatures to make reading comments easier.
// @namespace       http://www.cothlamadh.net/greasemonkey
// @include         http://cheggit.net/torrents.php?torrentid=*
// @include	    http://cheggit.net/forums.php?op=view&p=*
// @include         http://cheggit.net/forum/read.php*
// @author          Signe - http://www.cothlamadh.net/
// ==/UserScript==

if (!GM_addStyle) {
    alert('This script requires a newer version of Greasemonkey.  Please upgrade.');
    return;
}

GM_addStyle( "p.signature { display: none !important }" );
GM_addStyle( "p.signature img { display: none !important }" );
GM_addStyle( "div.post div.body div { display: none !important }" );

if (document.URL.indexOf('/forum/read.php') == -1) {
    return;
}

var sigs = document.getElementsByClassName('sigbreak');
for (var i = 0; i < sigs.length; i++) {
    while (sigs[i].nextSibling) {
	sigs[i].parentNode.removeChild(sigs[i].nextSibling);
    }
}