更新 'mcbbs/fetch-emerald.user.js'

This commit is contained in:
502647092 2020-12-09 04:34:27 +00:00
parent 11a6b26c15
commit b5d35d6416

View File

@ -23,13 +23,13 @@
var userline = user.querySelector('a.xw1')
if (!userline) return
var scoreInfo = user.querySelectorAll('dl.pil')[0]
postUserInfo(userline.href.split('uid=')[1], userline.innerText, scoreInfo.children[1].innerText, scoreInfo.children[3].innerText)
postUserInfo(userline.href.split('uid=')[1].split('&')[0], userline.innerText, scoreInfo.children[1].innerText, scoreInfo.children[3].innerText)
}
function readAllUserInfo() {
document.querySelectorAll('div.pls').forEach(readUserInfo)
}
function readSingleUserInfo() {
var uid = location.href.split('uid=')[1]
var uid = location.href.split('uid=')[1].split('&')[0]
var username = document.querySelector('.mt').outerText
var scoreInfo = document.querySelector('#psts').querySelector('.pf_l')
var glod = scoreInfo.children[3].innerText.replace(scoreInfo.children[3].children[0].innerText, '')