gyakkun / Where's the gender?

// ==UserScript==
// @name         Where's the gender?
// @description  She should (not) be a boy.
// @version      0.1.1
// @include     /^https?://(bgm\.tv|chii\.in|bangumi\.tv)/subject/\d+/characters$/
// @license MIT
// @grant        none
// @updateURL https://openuserjs.org/meta/gyakkun/Wheres_the_gender.meta.js
// ==/UserScript==

(function () {
  'use strict';
  $("div.crt_info > span.tip").each(function () {
    //君寻@liaune 说得对
    try {
      $(this).contents().each(() => {
        $(this).html($(this).html().replace(/<span class="tip_j">性别<\/span> \S+ \/?/g, ''));
      });
    }
    catch (err) {}

    /*    var a = 2;
        while (a--)
          try {
            $(this).contents()[1].remove();
          }
        catch (err) {}
    */
  });
})();