This commit is contained in:
xing 2020-10-10 15:30:21 +08:00
parent 78c80baf77
commit e3c145db4c

View File

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name tieba page // @name tieba page
// @namespace http://tampermonkey.net/ // @namespace http://tampermonkey.net/
// @version 1.015 // @version 1.016
// @author fthvgb1 // @author fthvgb1
// @match https://tieba.baidu.com/* // @match https://tieba.baidu.com/*
// @match https://tiebac.baidu.com/* // @match https://tiebac.baidu.com/*
@ -379,6 +379,7 @@
function t() { function t() {
lz(); lz();
$("ul#pblist>li").forEach(function (e, iii) { $("ul#pblist>li").forEach(function (e, iii) {
let ff = f(e); let ff = f(e);
if (ff === 1) { if (ff === 1) {
@ -552,6 +553,7 @@
} }
}); });
killCheckUrl();
} }
function lz() { 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() { function detail() {
god(); god();
p(); p();