We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e3d67e commit 7fde4deCopy full SHA for 7fde4de
1 file changed
src/index.ts
@@ -519,16 +519,14 @@ try {
519
buttonDom.style.setProperty('background-image', 'none');
520
}
521
522
- if (!Reflect.has(unsafeWindow, 'imglist')) break;
+ if (!location.pathname.startsWith('/photos-slide-aid-')) break;
523
524
options = {
525
name: 'wnacg',
526
getImgList: () =>
527
- (unsafeWindow.imglist as { url: string; caption: string }[])
528
- .filter(
529
- ({ caption }) => caption !== '喜歡紳士漫畫的同學請加入收藏哦!',
530
- )
531
- .map(({ url }) => new URL(url, location.origin).href),
+ querySelectorAll<HTMLImageElement>('#content img').map(
+ (e) => e.getAttribute('src')!,
+ ),
532
};
533
break;
534
0 commit comments