fix头像显示问题

This commit is contained in:
xing 2023-09-24 22:42:05 +08:00
parent 59dd292477
commit fab39732c5

View File

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name tieba page // @name tieba page
// @namespace http://tampermonkey.net/ // @namespace http://tampermonkey.net/
// @version 1.023 // @version 1.024
// @author fthvgb1 // @author fthvgb1
// @match https://tieba.baidu.com/* // @match https://tieba.baidu.com/*
// @match https://tiebac.baidu.com/* // @match https://tiebac.baidu.com/*
@ -956,7 +956,8 @@
const u = new URL(src) const u = new URL(src)
if (u.searchParams.has('src')) { if (u.searchParams.has('src')) {
src = decodeURIComponent(u.searchParams.get('src')); src = decodeURIComponent(u.searchParams.get('src'));
src = 'https://image.baidu.com/search/down?url=' + src; src = src.replace(/.*\.baidu.com\//, '')
src = 'https://gss0.bdstatic.com/6LZ1dD3d1sgCo2Kml5_Y_D3/' + src;
} }
img.src = src; img.src = src;
} }