Skip to content

Commit 3c47622

Browse files
committed
Update X-Downloader.user.js
1 parent b759fdf commit 3c47622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

X-Downloader/X-Downloader.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// @name:zh-TW X-Downloader-Script
55
// @name:ja X-Downloader-Script
66
// @namespace hoothin
7-
// @version 2025-08-13
7+
// @version 2025-08-17
88
// @license MIT
99
// @description Enhances your Twitter (X) experience by adding a convenient download button to images and videos (GIFs), enabling easy, one-click saving of media.
1010
// @description:zh-CN 优化你的推特 (X) 浏览体验,直接在图片和视频(GIF)上添加一个便捷的下载按钮,一键轻松保存喜欢的媒体内容。
@@ -71,7 +71,7 @@
7171
}
7272
if (parent) {
7373
downloadBtn.removeAttribute('download');
74-
let link = parent.querySelector('a[role="link"][aria-label]');
74+
let link = parent.querySelector('a[role="link"][aria-label][href^="/"]');
7575
downloadBtn.href = `https://twitter.hoothin.com/?url=${encodeURIComponent(link ? link.href : document.location.href)}`;
7676
if (e.altKey) {
7777
window.open(downloadBtn.href, "_blank");

0 commit comments

Comments
 (0)