From e72dac979271fe6fd2922ff9971381a38f860492 Mon Sep 17 00:00:00 2001 From: xing Date: Sat, 10 Oct 2020 10:33:24 +0800 Subject: [PATCH] fix --- tieba page.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tieba page.js b/tieba page.js index d2e18ec..ccda2be 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace http://tampermonkey.net/ -// @version 1.012 +// @version 1.013 // @author fthvgb1 // @match https://tieba.baidu.com/* // @match https://tiebac.baidu.com/* @@ -357,6 +357,13 @@ } rep.outerHTML = `${xx}` + x + y; let c = li.querySelector('.floor_content a[href*="/home/main?un="]') + if (!c) { + c = li.querySelector('.floor_content a[href*="jump?un="]'); + if (c) { + c.href = '/home/main?un=' + c.innerText + } + } + if (c) { let un = c.href.split('un=')[1]; un = decodeURI(un);