From b5d35d64161765305d20d5d77cfcb3e2446cf69e Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 9 Dec 2020 04:34:27 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'mcbbs/fetch-emerald.user.?= =?UTF-8?q?js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mcbbs/fetch-emerald.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, '')