Selective Signature

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

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

  1. // ==UserScript==
  2. // @name Selective Signature
  3. // @version 1.5
  4. // @description Automatically disables your signature on all posts outside of a specific forum category
  5. // @author Mr Whiskey
  6. // @include https://hackforums.net/showthread.*
  7. // @include https://hackforums.net/newreply.*
  8. // @include https://hackforums.net/newthread.*
  9. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
  10. // @namespace http://www.fuckboygamers.club
  11. // ==/UserScript==
  12.  
  13.  
  14. if($('a:contains("Instinct")').length > 0 === false) // Checks if <a> link contains "Instinct" group
  15. {
  16. boxChecker([].slice.call(document.querySelectorAll('input[type="checkbox"]'))); // Runs boxChecker
  17. }
  18. function boxChecker(boxes){boxes.forEach(function(box){box.checked = false;});} // Unchecks all boxes