mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Support image exporter
This commit is contained in:
parent
34a998ee1d
commit
827a18ac8b
@ -18,7 +18,7 @@ export const setupFeedImageExporter: ComponentEntry = async ({ settings: { optio
|
|||||||
text: '导出图片',
|
text: '导出图片',
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const imageUrls: { url: string; extension: string }[] = []
|
const imageUrls: { url: string; extension: string }[] = []
|
||||||
dqa(card.element, '.main-content .img-content').forEach((img: HTMLImageElement | HTMLDivElement) => {
|
dqa(card.element, '.main-content .img-content, .bili-album__preview__picture__img').forEach((img: HTMLImageElement | HTMLDivElement) => {
|
||||||
const urlData = retrieveImageUrl(img)
|
const urlData = retrieveImageUrl(img)
|
||||||
if (urlData && !imageUrls.some(({ url }) => url === urlData.url)) {
|
if (urlData && !imageUrls.some(({ url }) => url === urlData.url)) {
|
||||||
imageUrls.push(urlData)
|
imageUrls.push(urlData)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user