Greasy Fork

Greasy Fork is available in English.

视觉中国缩略图

try to take over the world!

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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)
        })

    })



})();