Expected Behavior
下载只有图片没有文本的推时应该跳过{full-text}正常下载。
Actual Behavior
有{full-text} 时点击下载会不停转圈。
Steps to Reproduce
- File Name Pattern输入{full-text} {file-name} {user-name}
- 点击纯图片的下载键
Script Manager or Browser
TamperMonkey
Script Manager or Browser Version
No response
Browser and Engine Version
Brave 1.90.122
Operating System
Windows 10
Script Version
Twitter 媒体下载 (2025.12.02 修复)
Additional Information
把
info.out = (out.replace(/.?{file-ext}/, '') + ((medias.length > 1 || index) && !out.match('{file-name}') ? '-' + (index ? index - 1 : i) : '') + '.{file-ext}').replace(/{([^{}:]+)(:[^{}]+)?}/g, (match, name) => info[name])
改成
info.out = (out.replace(/.?{file-ext}/, '') + ((medias.length > 1 || index) && !out.match('{file-name}') ? '-' + (index ? index - 1 : i) : '') + '.{file-ext}')
.replace(/{([^{}:]+)(:[^{}]+)?}/g, (match, name) => info[name])
.replace(/\s+/g, ' ')
.replace(/\s+./g, '.')
.trim()
即可修复
I confirm the bug really exists
Expected Behavior
下载只有图片没有文本的推时应该跳过{full-text}正常下载。
Actual Behavior
有{full-text} 时点击下载会不停转圈。
Steps to Reproduce
Script Manager or Browser
TamperMonkey
Script Manager or Browser Version
No response
Browser and Engine Version
Brave 1.90.122
Operating System
Windows 10
Script Version
Twitter 媒体下载 (2025.12.02 修复)
Additional Information
把
info.out = (out.replace(/.?{file-ext}/, '') + ((medias.length > 1 || index) && !out.match('{file-name}') ? '-' + (index ? index - 1 : i) : '') + '.{file-ext}').replace(/{([^{}:]+)(:[^{}]+)?}/g, (match, name) => info[name])
改成
info.out = (out.replace(/.?{file-ext}/, '') + ((medias.length > 1 || index) && !out.match('{file-name}') ? '-' + (index ? index - 1 : i) : '') + '.{file-ext}')
.replace(/{([^{}:]+)(:[^{}]+)?}/g, (match, name) => info[name])
.replace(/\s+/g, ' ')
.replace(/\s+./g, '.')
.trim()
即可修复
I confirm the bug really exists