琉璃神社_伪大佬

替换神社等级图标。

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name               琉璃神社_伪大佬
// @name:zh-CN         琉璃神社_伪大佬
// @name:en-US         HACG_Fake ace
// @description        替换神社等级图标。
// @version            1.0.5
// @author             LiuliPack
// @license            WTFPL
// @namespace          https://gitlab.com/LiuliPack/UserScript
// @match              https://www.hacg.me/wp/bbs/*
// @match              https://www.hacg.mom/wp/bbs/*
// @grant              GM_addStyle
// @run-at             document-body
// ==/UserScript==

'use strict';

// 定义昵称(nickname)变量,元素快捷选择($(元素定位符))函数
let $ = ele => document.querySelectorAll(ele),
    nickname = $('.wpforo-profile a')[0] && $('.wpforo-profile a')[0].href.split('/')[5];

// 替换等级图标和图标颜色
$(`div[data-mention="${nickname}"] .author-rating-full, .wpf-prof-rating .author-rating-full`).forEach(ele => {
    ele.innerHTML = '<i class="fas fa-trophy"></i>';
    ele.style.color = '#00bbfa';
});