您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try
当前为
// ==UserScript== // @name Downloader // @namespace http://yu.net/ // @version 2024-01-20 // @description try // @author Yu // @match https://bunkrr.ru/* // @icon https://www.google.com/s2/favicons?sz=64&domain=bunkrr.ru // @grant GM_download // @license MIT // ==/UserScript== function createProgressElement() { const container = document.createElement("div") container.classList.add("fixed", "bottom-0", "left-0", "w-full", "bg-gray-200", "rounded-full", "h-2.5", "dark:bg-gray-700") const progress = document.createElement("div") progress.classList.add("progress", "bg-blue-600", "h-2.5", "rounded-full") container.append(progress) return container; } function createDownloadElement() { const button = document.createElement("button") button.style.background = "#ffd369"; button.style.color = "#272727" button.style.fontWeight = "bold"; button.classList.add("block", "mx-auto", "py-2", "px-4", "rounded"); button.innerText = "Download All"; return button } function handleDownloadAllImages() { const elements = document.querySelectorAll(".grid-images_box a"); const images = [] elements.forEach(item => images.push(`https://i-taquito.bunkr.ru/${item.href.replace("https://bunkrr.ru/i/", "")}`)) function getFilename(path) { path = path.split("/") path = path[path.length -1] path = path.split(".") delete path[path.length -1] return path.join(".") } for(const img of images) { const title = getFilename(img) GM_download(img, title) break } } (function() { 'use strict'; const button = createDownloadElement(); button.onclick = handleDownloadAllImages; const progress = createProgressElement(); document.querySelector("section").append(button, progress); document.body.append(progress); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址