Greasy Fork镜像 替换原图

脚本详情页预览图替换为原图, 方便拖拽保存。github:https://github.com/Ahaochan/Tampermonkey,欢迎star和fork。

目前为 2017-11-12 提交的版本。查看 最新版本

// ==UserScript==
// @name        Greasy Fork镜像 替换原图
// @name:zh     Greasy Fork镜像 替换原图
// @name:ja 	Greasy Fork镜像 replace original image
// @name:en  	Greasy Fork镜像 replace original image
// @namespace   https://github.com/Ahaochan/Tampermonkey
// @version     0.0.1
// @description:zh 脚本详情页预览图替换为原图, 方便拖拽保存。github:https://github.com/Ahaochan/Tampermonkey,欢迎star和fork。
// @description:ja Replacement script details page preview is the original image, easy to drag and save. Github:https://github.com/Ahaochan/Tampermonkey. Star and fork is welcome.
// @description:en Replacement script details page preview is the original image, easy to drag and save. Github:https://github.com/Ahaochan/Tampermonkey. Star and fork is welcome.
// @author      Ahaochan
// @supportURL  https://github.com/Ahaochan/Tampermonkey
// @include     http*://gf.qytechs.cn*
// @include     http*://www.gf.qytechs.cn/*
// @require     https://code.jquery.com/jquery-2.2.4.min.js
// @description 脚本详情页预览图替换为原图, 方便拖拽保存。github:https://github.com/Ahaochan/Tampermonkey,欢迎star和fork。
// ==/UserScript==

(function ($) {
    'use strict';

    $('.script-screenshots a img').each(function () {
        var $this = $(this);
        var width = this.clientWidth, height = this.clientHeight;
        var url = $this.attr('src').replace('thumb', 'original');
        $this.attr('src', url)
            .attr('width', width)
            .attr('height', height);
    });
})(jQuery);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址