hkprotestlive / 連登自定義P牌會員

// ==UserScript==
// @namespace     https://openuserjs.org/users/hkprotestlive
// @name         連登自定義P牌會員
// @description  更改[pThreshold]去自定義P牌會員開始ID, 自定義P牌會員名稱會發綠
// @copyright     2019, hkprotestlive (https://openuserjs.org/users/hkprotestlive)
// @license       MIT
// @version      1.0
// @include      *://lihkg.com/thread/*
// @grant        none
// ==/UserScript==

// ==OpenUserJS==
// @author hkprotestlive
// ==/OpenUserJS==

let pThreshold = 100000;

function detectPUser() {
    let el = Array.from(document.getElementsByTagName("a")).filter(e => {
        return e.getAttribute("class") === "A0jheqYUBHNW93KykXKEH" || e.getAttribute("class") === "jj_3ZDzjtPixL1b2KTcpS"
    }).forEach(e => {
        if(e.href.match(/\d+/) >= pThreshold) {
            // e.style.color = "white";
            e.style.textShadow = "-1px -1px 0 #00FF00, 1px -1px 0 #00FF00, -1px 1px 0 #009900, 1px 1px 0 #00FF00";
            // e.style.textShadow = "2px 2px orange";
        }
    })
    }
setInterval(function() {
   if (document.getElementById("rightPanel")) {
     document.getElementById("rightPanel").addEventListener('DOMSubtreeModified', detectPUser, false);
   }
}, 100);
detectPUser();