吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1365|回复: 13
收起左侧

[其他原创] 【原创工具】脚本猫 JS 离线图片批量下载助手

[复制链接]
CHUY 发表于 2026-7-21 12:08
本帖最后由 CHUY 于 2026-7-21 18:46 编辑

【原创工具】脚本猫 JS 离线图片批量下载助手
脚本介绍本脚本为脚本猫/油猴等适配的浏览器离线图片批量下载工具,无需在线依赖,可深度扫描网页各类图片资源,支持预览筛选、批量下载、PDF 合成等核心功能,纯本地运行无广告,适配 Chrome/Edge等主流浏览器,是办公收图、素材整理的实用工具,解决手动单张保存图片的低效问题。
本工具仅作学习交流、技术研究与个人效率提升使用。请在明确知晓并遵守当地法律法规、目标网站服务条款及相关版权规则的前提下使用。凡通过网络下载的内容,请于 24 小时内自行删除,不得传播、售卖、商用或用于任何侵犯他人权益的用途。使用本脚本产生的任何数据流向、存储行为及所有法律后果,在用户同意本协议时即视为其承认相关行为均由使用者自行承担。作者不对因使用本工具而导致的任何直接或间接损失负责。
核心功能亮点
  • 更强的图片嗅探:支持 img、currentSrc/src/srcset、picture/source[srcset]、懒加载属性、背景图、Shadow DOM、noscript、资源记录、扩展名缺失的 CDN 图片线索等。
  • 自动加载更全:扫描前会自动滚动页面与可滚动容器,并尝试触发常见“加载更多 / Load More”类按钮。
  • 下载更稳:优先使用 File System Access API 选择目录;不可用时自动回退到 GM_download 或浏览器下载。
  • 细节修正:修复扫描结果状态回写、下载按钮状态恢复、扩展名过滤统一、同名去重、文件名清洗等问题。
  • 双语界面:面板、首次协议、使用指南均支持中文 / English 切换。
  • 保留内置打赏图:安装后无需额外配置即可直接看到内置打赏二维码。
兼容环境
  • ScriptCat
  • Tampermonkey
  • Violentmonkey
  • 其他支持 JavaScript / userscript 的浏览器环境(按能力自动降级)
使用方式
  • 安装 图片批量下载助手.js
  • 打开任意网页
  • 点击悬浮球打开面板
  • 先执行图片搜寻,再按需下载单图或导出 PDF
  • 右键悬浮球可打开隐藏 / 更换图标等菜单
  • Alt+T 可恢复被隐藏的悬浮球
真实页面展示 1783960434765.png 1783960215333.png 1783960246276.png 1783960334272.png


[JavaScript] 纯文本查看 复制代码
                appName: 'Image Download Helper',
                appReady: 'Image Download Helper is ready',
                guardTriggered: 'Guard hotkey triggered: floating launcher restored',
                toggleTitle: 'Image Download Helper\nClick to open the panel\nDrag the launcher or panel to move it\nRight-click the launcher for more options',
                rightClickHint: 'Try right-clicking me for more tools',
                scanProgress: 'Scanning page images...',
                scanComplete: 'Scan finished',
                scanning: 'Scanning...',
                scanPrompt: 'Click the button above to scan images',
                scanNone: 'No matching images were found',
                scanFound: 'Found {count} images',
                selectAll: 'All',
                previewExpand: 'Show preview',
                previewCollapse: 'Hide preview',
                rescan: '⌕ Scan again',
                startDownload: 'Start download',
                startDownloadCount: 'Start download ({count})',
                processing: 'Processing...',
                preparing: 'Ready to start...',
                progressProcessing: 'Processing {done}/{total}',
                help: 'ⓘ Help',
                changeIcon: '◌ Change icon',
                reset: '↺ Reset',
                donatePanel: 'Support the author and view the tip QR',
                panelTitle: '◈ Universal Image Finder & Downloader',
                themeTitle: 'Change theme',
                langTitle: 'Switch Chinese / English',
                scanButton: '⌕ Scan page images',
                filterTitle: '⌘ Advanced filters',
                filterMinWidth: 'Minimum width (px)',
                filterMinHeight: 'Minimum height (px)',
                filterFormats: 'Image formats',
                downloadOptions: '▣ Download options',
                optionSingleTitle: '▣ Export single images',
                optionSingleDesc: 'Save into a local folder with write access',
                optionPdfTitle: '▤ Export a PDF in page order',
                optionPdfDesc: 'Combine images into one PDF, one image per page',
                maxScan: 'Maximum scan range (in page order)',
                folderName: 'Folder name',
                folderPlaceholder: 'Enter folder name',
                themeAuto: 'System',
                themeLight: 'Light',
                themeDark: 'Dark',
                contextIcon: '◌ Change icon (custom launcher)',
                contextHideOnce: '⊖ Hide this launcher for now',
                contextHideAlways: '◎ Hide permanently (Alt+T to restore)',
                hiddenOnce: 'Floating launcher hidden for this page',
                hiddenAlways: 'Floating launcher hidden permanently (Alt+T restores it)',
                iconTooLarge: 'Icon image is too large. Keep it under 2MB',
                iconUpdated: 'Floating launcher icon updated',
                languageSwitched: 'Interface language switched',
                openMenuCommand: '◈ Open launcher',
                resetConfirm: 'Reset all settings?\n\nThis will restore:\n- launcher position and icon\n- filter rules and folder settings\n- language and theme settings\n\nThe page will reload automatically.',
                agreementRejected: 'You declined the agreement. The script will stop working',
                noImagesDownload: 'No downloadable images found. Please scan first',
                noneSelected: 'No images selected. Please choose at least one',
                downloadDone: 'Download finished: {success} succeeded',
                downloadDoneWithFail: 'Download finished: {success} succeeded, {failed} failed',
                downloadFallback: 'GM_download is unavailable. Falling back to browser download',
                chooseFolder: 'Choose where to save the images',
                chooseFolderButton: 'Choose folder',
                chooseFolderOpening: 'Opening folder picker...',
                cancel: 'Cancel',
                cancelled: 'Download cancelled',
                userCancelled: 'User cancelled the directory picker',
                createSubfolderFailed: 'Subfolder creation failed. Saving into the selected folder instead',
                createPdfFolderFailed: 'PDF subfolder creation failed. Saving into the selected folder instead',
                fsFallback: 'File system save failed. Falling back to normal download',
                fetchingImages: 'Fetching image data...',
                savingPdf: 'Saving PDF...',
                buildPdfPage: 'Building PDF page {page}/{total}',
                noPdfImages: 'No images available for PDF export',
                pdfSaved: 'PDF saved to the selected folder',
                pageLoadWarn: 'Auto-loading page images ran into an issue:',
                containerLoadWarn: 'Auto-loading scroll container images ran into an issue:',
                scanFailed: 'Scan failed: ',
                downloadFailed: 'Download failed',
                loadMoreLabels: '加载更多,查看更多,更多图片,展开更多,显示更多,load more,show more,more'
            }
        };

源件下载地址
蓝奏云:https://chyubaby.lanzout.com/i8CZ83xs6une  密码:gpyq
开源地址分享
https://github.com/YU123-ZZZ/image-batch-downloader-helper


注意事项
1.本脚本仅用于本地个人学习、办公素材整理,请勿用于爬取商业付费图片、侵权素材,违者后果自负;
2.学习交流爬取后请于24小时内删除;
3.脚本纯手搓开发,无任何后台请求、广告植入、数据收集,可放心使用;
4.若部分网页扫描失败,可能为网页有反爬解析限制,属正常现象,本脚本不提供破解网页限制的功能;
5.仅支持浏览器端使用,移动端脚本猫插件暂未适配悬浮球功能。

本脚本为原创开发,无任何外链、联系方式,纯技术分享,若使用中有问题可在本帖留言交流,后续会根据反馈优化更新~

免费评分

参与人数 4吾爱币 +11 热心值 +4 收起 理由
chen8160531 + 1 + 1 热心回复!
苏紫方璇 + 7 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
XIAOMENGA + 1 + 1 热心回复!
longwu1031 + 2 + 1 谢谢@Thanks!

查看全部评分

本帖被以下淘专辑推荐:

发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

 楼主| CHUY 发表于 2026-8-24 12:55
chen8160531 发表于 2026-8-24 10:37
我不是很懂,可能是我设置的问题。

你好,此脚本主要用于浏览器扩展插件配套使用,需要安装浏览器脚本猫等扩展插件使用。不能直接系统级运行
可以参考一下这个教程https://docs.scriptcat.org/docs/use/use/
Liuyulinab 发表于 2026-7-21 15:41
柒渊网络 发表于 2026-7-21 15:41
longwu1031 发表于 2026-7-21 17:00
感谢楼主,无私奉献,下载图片更顺利
IF01001 发表于 2026-7-22 09:59
感谢分享
逐雅斋 发表于 2026-7-22 11:14
这个不错,感谢分享!
小鱼儿钓猫咪 发表于 2026-7-22 14:34
不错的想法
wlz1118 发表于 2026-8-1 11:14
发布原创作品
chen8160531 发表于 2026-8-23 00:41
想用, 打不开。。报错
 楼主| CHUY 发表于 2026-8-24 01:01
chen8160531 发表于 2026-8-23 00:41
想用, 打不开。。报错

你好,具体是遇到什么错误,方便截图吗
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - 52pojie.cn ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2026-11-9 23:07

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表