fix头像
This commit is contained in:
parent
fcbf640922
commit
d3f2c7c7c7
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name tieba page
|
||||
// @namespace http://tampermonkey.net/
|
||||
// @version 1.020
|
||||
// @version 1.021
|
||||
// @author fthvgb1
|
||||
// @match https://tieba.baidu.com/*
|
||||
// @match https://tiebac.baidu.com/*
|
||||
|
@ -902,6 +902,7 @@
|
|||
if (title) {
|
||||
// title.href=title.href.replace('f?kw=','mo/q/m?word=')
|
||||
}
|
||||
fixHeadImages();
|
||||
god();
|
||||
p();
|
||||
reply();
|
||||
|
@ -937,6 +938,22 @@
|
|||
|
||||
}
|
||||
|
||||
function fixHeadImages() {
|
||||
const e = document.querySelectorAll("#pblist li .list_item_top_avatar img");
|
||||
e.forEach(img => {
|
||||
let src = img.src;
|
||||
//http://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?mowebapp&quality=80&size=b72_72&cut_x=0&cut_w=0&cut_y=0&cut_h=0&sec=1369815402&di=d90486ddc230fa80b609654f1ef9491b&wh_rate=null&src=http%3A%2F%2Ftb.himg.baidu.com%2Fsys%2Fportrait%2Fitem%2Ftb.1.a55b4bff.yLhcG9k0TG9vPBPgt_D19A.jpg
|
||||
if (src.indexOf('http://') === 0) {
|
||||
const u = new URL(src)
|
||||
if (u.searchParams.has('src')) {
|
||||
src = decodeURIComponent(u.searchParams.get('src'));
|
||||
src = 'https://image.baidu.com/search/down?url=' + src;
|
||||
}
|
||||
img.src = src;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
let book, svgss;
|
||||
|
||||
function clickControl() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user