Selective Signature

Automatically disables your signature on all posts outside of a specific forum category

当前为 2016-11-28 提交的版本,查看 最新版本

// ==UserScript==
// @name           Selective Signature
// @version        1.5
// @description    Automatically disables your signature on all posts outside of a specific forum category
// @author         Mr Whiskey
// @include        https://hackforums.net/showthread.*
// @include        https://hackforums.net/newreply.*
// @include        https://hackforums.net/newthread.*
// @require        http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// @namespace      http://www.fuckboygamers.club
// ==/UserScript==


if($('a:contains("Instinct")').length > 0 === false) // Checks if <a> link contains "Instinct" group
{
    boxChecker([].slice.call(document.querySelectorAll('input[type="checkbox"]'))); // Runs boxChecker
}
function boxChecker(boxes){boxes.forEach(function(box){box.checked = false;});} // Unchecks all boxes