diff --git a/mcbbs/fetch-emerald.user.js b/mcbbs/fetch-emerald.user.js index 0845f27..3ce1b3c 100644 --- a/mcbbs/fetch-emerald.user.js +++ b/mcbbs/fetch-emerald.user.js @@ -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, '')