您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
get tags, edit and copy
// ==UserScript== // @name OpenClipArt Tags Copy Help // @namespace http://tampermonkey.net/ // @version 0.1 // @description get tags, edit and copy // @author qubodup // @match https://openclipart.org/detail/* // @icon https://www.google.com/s2/favicons?domain=openclipart.org // @require http://code.jquery.com/jquery-3.4.1.min.js // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... var tags=""; $('#content > div:nth-child(1) > div.col-md-6.clipart-detail-meta > dl > dd:nth-child(2) a').each(function() { if (tags==""){tags=$(this).text();} else { tags=tags+","+$(this).text(); } }); tags = tags + "," + $('#use > div > div > div > ul > li:nth-child(3) > b').text(); $('#content > div:nth-child(1) > div.col-md-6.clipart-detail-meta > div:nth-child(3)').prepend("<textarea>"+tags+"</textarea>"); })();