From e3c145db4c37a6c809035dea2db8907485f2d192 Mon Sep 17 00:00:00 2001 From: xing Date: Sat, 10 Oct 2020 15:30:21 +0800 Subject: [PATCH] url --- tieba page.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tieba page.js b/tieba page.js index 770659f..ffc5c83 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace http://tampermonkey.net/ -// @version 1.015 +// @version 1.016 // @author fthvgb1 // @match https://tieba.baidu.com/* // @match https://tiebac.baidu.com/* @@ -379,6 +379,7 @@ function t() { lz(); + $("ul#pblist>li").forEach(function (e, iii) { let ff = f(e); if (ff === 1) { @@ -552,6 +553,7 @@ } }); + killCheckUrl(); } function lz() { @@ -857,6 +859,15 @@ } + function killCheckUrl() { + let urls = document.querySelectorAll('a[href*="/mo/q/checkurl"]'); + [...urls].forEach(a => { + const url = decodeURIComponent(a.href).split('url=')[1] + a.href = url; + a.target = '_blank'; + }) + } + function detail() { god(); p();