您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a button to copy all image links at Artstation page to bulk download.
当前为
// ==UserScript== // @name Copy all Artstation Image links to Download // @namespace Violentmonkey Scripts // @version 1.0.2 // @description Add a button to copy all image links at Artstation page to bulk download. // @author Wizzergod // @match https://*.artstation.*/*/* // @grant GM_setClipboard // @license MIT // ==/UserScript== (function() { 'use strict'; function copyLinksToClipboard() { var links = Array.from(document.querySelectorAll('a[download]')).map(link => link.href); var linksText = links.join('\n'); navigator.clipboard.writeText(linksText) .then(() => { alert('Links copied to clipboard!'); }) .catch(error => { console.error('Error copying links to clipboard:', error); }); } var copyButton = document.createElement('button'); copyButton.innerText = 'Copy Links'; copyButton.className = 'bs-btn bs-btn-primary'; copyButton.style.cssText = ` padding: 10px 20px 10px 16px; border-radius: 8px; display: flex; flex-direction: row; font-weight: 500; gap: 8px; justify-content: flex-start; line-height: 100%; color: black; /* Set the text color to black */ `; var targetElement = document.querySelector('ul.menu-level-1-buttons.sm-gap-medium'); var listItem = document.createElement('li'); listItem.style.listStyle = 'none'; // Remove the dot style listItem.appendChild(copyButton); targetElement.appendChild(listItem); copyButton.addEventListener('click', copyLinksToClipboard); })();