您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在页面顶部插入图片域名筛选框和下载按钮,根据关键词匹配图片URL并批量下载。默认针对所有站点开启,所以建议不需要时先禁用脚本,需要时再开启。
当前为
// ==UserScript== // @name Picture Downloader|Image Downloader|图片下载器 // @namespace https://tankywoo.com // @version 0.1 // @description 在页面顶部插入图片域名筛选框和下载按钮,根据关键词匹配图片URL并批量下载。默认针对所有站点开启,所以建议不需要时先禁用脚本,需要时再开启。 // @author Tanky Woo // @include http*://*/* // @require https://cdn.bootcss.com/jquery/3.2.1/jquery.js // @grant none // @run-at document-idle // @license MIT License // ==/UserScript== (function() { 'use strict'; // 说明: // - 现在很多网站的图片是延迟加载,需要手动看一遍加载后再点击下载 $('body').prepend('<button type="button" class="download-btn">下载图片</button>'); $('body').prepend('<input type="text" class="download-input" />'); $('.download-btn').on('click', function() { var match_url = $(".download-input").val(); var images = $('img').map(function(){ return $(this).attr('src'); }).get(); // show all images $(images).each(function() { console.log(this); }); $(images).each(function() { var image = this; if (image.indexOf(match_url) !== -1) { var a = $("<a>") .attr("href", image) .attr("download", "") .appendTo("body"); a[0].click(); } }); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址