What's new

Web Hide User Signatures

Z61

Z61

Some times our saints are sinners
Retired
Programmer Forum Addict Odysseus' Summit
Messages
5,476
Reaction score
3,422
Note: This script is completely inspired by this thread.
This script allows you to hide all user's signatures. To view signatures, all you need to do is click a link where the signature normally resides.
Installation Link: http://userscripts.org/scripts/show/415434
Source:
Code:
// ==UserScript==
// @name Hide Signatures
// @namespace http://z61.org/
// @version 1.0
// @description Hides all user signatures on Se7ensins.
// @match http://www.se7ensins.com/*
// @copyright 2014+, Z61
// ==/UserScript==
var hideSpecificUsers = false;
var users = new Array();
// to add a user, start at zero and increment by one for each user.
// ex: users[0] = "Z61";
// currently is useless.
$(document).ready(hideSigs);
$(".hideSig").css("display", "none");
function hideSigs()
{
//if (hideSpecificUsers)
//{
// will implement later
//}
$(".signature").each(function( index ) {
var s = $(this).html();
$(this).html("");
$(this).prepend("<a href='#'class='sigToggle' style='display:block;'>Show Signature</a><div class='hideSig'></div>");
$(this).find(".hideSig").html(s);
//$(this).
});
$(".sigToggle").click(function() {
$(this).parent().find(".hideSig").slideToggle();
if ($(this).parent().find(".hideSig").css('display') == "block")
$(this).text("Hide Signature");
else
$(this).text("Show Signature");
return false;
});
}
Image(s)
63d145a1ba5745f939cfe03cb66bf8d6.png
It does have some bugs and I'll work on them eventually.
 
Top Bottom