Gr..btch

送交者: lkkl [★品衔R5★] 于 2026-03-09 20:29 已读6次 大字阅读 繁体
回复: test2 由 lkkl 于 2026-01-27 2:47
javascript:(function(){
const vids = Array.from(document.querySelectorAll('video'));
if(vids.length === 0) {alert('未發現視頻'); return;}

vids.forEach((v, i) => {
const src = v.src || (v.querySelector('source') && v.querySelector('source').src);
if(src && src.startsWith('blob:')) {
setTimeout(() => {
fetch(src).then(r => r.blob()).then(b => {
const a = document.createElement('a');
const url = URL.createObjectURL(b);
a.href = url;
a.download = 'Grok_FF_Batch_' + (i+1) + '.mp4';
document.body.appendChild(a);
a.click();
a.remove();
/* 下載觸發後立即釋放內存引用 */
setTimeout(() => URL.revokeObjectURL(url), 10000);
console.log('Firefox 觸發下載: ' + (i+1));
});
}, i * 2500);
}
});
})();

javascript:(function(){
const vids = Array.from(document.querySelectorAll('video'));
if(vids.length === 0) {alert('未发现视频'); return;}

console.log('开始批量准备 ' + vids.length + ' 个视频...');

vids.forEach((v, i) => {
const src = v.src || (v.querySelector('source') && v.querySelector('source').src);
if(src && src.startsWith('blob:')) {
/* 延迟执行,防止瞬间占用内存过高导致 PE 崩溃 */
setTimeout(() => {
fetch(src).then(r => r.blob()).then(b => {
const a = document.createElement('a');
a.href = URL.createObjectURL(b);
a.download = 'Grok_Batch_' + (i+1) + '_' + Math.floor(Date.now()/1000) + '.mp4';
document.body.appendChild(a);
a.click();
a.remove();
console.log('已触发下载: ' + (i+1));
});
}, i * 2000); /* 每个视频间隔 2 秒触发 */
}
});
})();

javascript:(function(){
const vids = Array.from(document.querySelectorAll('video'));
if(vids.length === 0) {
alert('未发现视频组件');
return;
}

let win = window.open('', '_blank');
win.document.write('

Blob 视频嗅探器

');

vids.forEach((v, i) => {
const src = v.src || (v.querySelector('source') && v.querySelector('source').src);
if(src) {
win.document.write('
');
win.document.write('

视频 #' + (i+1) + ' 源: ' + src.substring(0, 50) + '...


');
win.document.write('[Insecure Code] [< video src="'+src+'" controls style="width:300px;">]');
win.document.write('尝试强制下载 (占用内存)');
win.document.write('

');
}
});
win.document.write('');
})();

请标记您是否认为本帖内容由AI生成?

喜欢lkkl朋友的这个帖子的话,👍 请点这里投票,"赞" 助支持!

[举报反馈] [-->>参与评论回复] [用户前期主贴] [] [返回主帖] [返回AI+codes首页]

内容由网友自行发布分享,如果违规或侵权,请与我们联系,核实后会尽快删除。
User-generated content only. If any content violates your rights, please contact us for removal.

所有跟帖: (主帖帖主有权删除不文明回复,拉黑不受欢迎的用户)

楼主本月热帖推荐:

    >>>查看更多帖主社区动态...