湿热一瞬间显示性别

像手机版一样,在电脑版上显示作者性别

// ==UserScript==
// @name         湿热一瞬间显示性别
// @namespace    https://shireyishunjian.com/main/?170123
// @version      0.1
// @description  像手机版一样,在电脑版上显示作者性别
// @author       难道这么冷
// @match        https://shireyishunjian.com/main/forum.php?*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    jQuery('head').append('<link rel="stylesheet" type="text/css" href="/main/template/banzhuan_touch01201/touch/banzhuan/font/iconfont.css">');
    jQuery('head').append(`<style>
.color-nan { color:#87D0F5;}
.color-nv { color: #FFA3A3} </style>`);

    jQuery('.authi .xw1').each(function(){
      let pop=jQuery(this).closest('.pls').find('.p_pop');
      let gender='';
      if(pop.hasClass('card_gender_0'))
      {
          gender='';
      }
      else if(pop.hasClass('card_gender_1'))
      {
          gender='icon-shouyezhuyetubiao06 color-nan';
      }
      else if(pop.hasClass('card_gender_2'))
      {
          gender='icon-iconfontshouyezhuyetubiao07 color-nv';
      }
      jQuery(this).after(`<i class="iconfont ${gender}"></i>`);
    });
})();