fix头像显示问题
This commit is contained in:
parent
59dd292477
commit
fab39732c5
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name tieba page
|
||||
// @namespace http://tampermonkey.net/
|
||||
// @version 1.023
|
||||
// @version 1.024
|
||||
// @author fthvgb1
|
||||
// @match https://tieba.baidu.com/*
|
||||
// @match https://tiebac.baidu.com/*
|
||||
|
@ -956,7 +956,8 @@
|
|||
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;
|
||||
src = src.replace(/.*\.baidu.com\//, '')
|
||||
src = 'https://gss0.bdstatic.com/6LZ1dD3d1sgCo2Kml5_Y_D3/' + src;
|
||||
}
|
||||
img.src = src;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user