更新 'mcbbs/fetch-emerald.user.js'
This commit is contained in:
parent
11a6b26c15
commit
b5d35d6416
@ -23,13 +23,13 @@
|
|||||||
var userline = user.querySelector('a.xw1')
|
var userline = user.querySelector('a.xw1')
|
||||||
if (!userline) return
|
if (!userline) return
|
||||||
var scoreInfo = user.querySelectorAll('dl.pil')[0]
|
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() {
|
function readAllUserInfo() {
|
||||||
document.querySelectorAll('div.pls').forEach(readUserInfo)
|
document.querySelectorAll('div.pls').forEach(readUserInfo)
|
||||||
}
|
}
|
||||||
function readSingleUserInfo() {
|
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 username = document.querySelector('.mt').outerText
|
||||||
var scoreInfo = document.querySelector('#psts').querySelector('.pf_l')
|
var scoreInfo = document.querySelector('#psts').querySelector('.pf_l')
|
||||||
var glod = scoreInfo.children[3].innerText.replace(scoreInfo.children[3].children[0].innerText, '')
|
var glod = scoreInfo.children[3].innerText.replace(scoreInfo.children[3].children[0].innerText, '')
|
||||||
|
Loading…
Reference in New Issue
Block a user