您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
// ==UserScript== // @name 视觉中国缩略图 // @namespace http://xiaoriri.com/ // @version 0.1 // @description try to take over the world! // @author You // @match https://www.vcg.com/creative/* // @grant none // @require http://cdn.bootcss.com/jquery/1.12.4/jquery.min.js // @require https://cdn.bootcss.com/sweetalert/2.1.2/sweetalert.min.js // ==/UserScript== (function() { 'use strict'; let res_id = __PRELOADED_STATE__.imageDetail.data.picInfo.res_id; let uid = /https:\/\/www.vcg.com\/creative\/(\d+)/.exec( window.location.href)[1]; $(".detailDtit").siblings().last().append(`<button tabindex="0" id="down_1" class="jss128 jss113 jss29 jss64" type="button"><span class="jss114">无水印下载</span><span class="jss131"></span></button>`) $('#down_1').click(function(){ $.get('https://www.vcg.com/api/image/detail/similarImages?similar_id='+uid,ret=>{ open(ret.list[0].url800) }) }) })();