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 2.0
  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. $('input[name="postoptions[signature]"]').each(function(){ this.checked = true; }); // Disables checkmark for some reason
  14.  
  15. if($('a:contains("Instinct")').length > 0 === false) // Checks if <a> link contains "Instinct" group
  16. $('input[name="postoptions[signature]"]').each(function(){ this.checked = false; }); // Enables checkmark for some reason