博客园随机刷新背景图抓取
按键盘F12键调出开发者工具
然后在控制台输入下面的代码
const bg = Array.from(document.querySelectorAll('*')).find(el=>{
const bgImg = getComputedStyle(el).backgroundImage;
return bgImg && bgImg !== 'none' && bgImg.startsWith('url');
});
console.log(bg ? getComputedStyle(bg).backgroundImage : '没找到');
点击图片链接就可以右键另存为,然后用电脑自带的画图软件打开就可以另存为JPG图片了。
源代码页面ACG


浙公网安备 33010602011771号