您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Scrape free download links from Erogedownload and put them into your clipboard
// ==UserScript== // @name Erogedownload link scrapper // @namespace https://greasyfork.org/en/users/381705-takase1121 // @version 1.0 // @description Scrape free download links from Erogedownload and put them into your clipboard // @author Takase // @match *://erogedownload.com/downloads/* // @grant GM_registerMenuCommand // @grant GM_setClipboard // @grant GM_notification // ==/UserScript== (function() { 'use strict'; GM_registerMenuCommand('Copy links to clipboard', function() { // select the proper download div var links = Array.prototype.slice.call(document.querySelector('div[data-title="Free download"]').children); var filteredLinks = []; for (var i = 0; i < links.length; i++) { if (links[i].nodeName !== 'A') continue; filteredLinks.push(links[i].href); } GM_setClipboard(filteredLinks.join('\n'), 'text'); GM_notification(filteredLinks.length + ' link' + (links.length > 1 ? 's are' : ' is') + ' copied to clipboard', 'Links copied to clipboard'); }) })();