Greasy Fork镜像 替換原圖

腳本詳情頁預覽圖替換為原圖, 方便拖拽保存。github:https://github.com/Ahaochan/Tampermonkey,歡迎star和fork。

  1. // ==UserScript==
  2. // @name Greasy Fork镜像 replace original image
  3. // @name:zh-CN Greasy Fork镜像 替换原图
  4. // @name:zh-TW Greasy Fork镜像 替換原圖
  5. // @namespace https://github.com/Ahaochan/Tampermonkey
  6. // @version 0.0.2
  7. // @description 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.
  8. // @description:zh-CN 脚本详情页预览图替换为原图, 方便拖拽保存。github:https://github.com/Ahaochan/Tampermonkey,欢迎star和fork。
  9. // @description:zh-TW 腳本詳情頁預覽圖替換為原圖, 方便拖拽保存。github:https://github.com/Ahaochan/Tampermonkey,歡迎star和fork。
  10. // @author Ahaochan
  11. // @supportURL https://github.com/Ahaochan/Tampermonkey
  12. // @include http*://gf.qytechs.cn*
  13. // @include http*://www.gf.qytechs.cn/*
  14. // @require https://code.jquery.com/jquery-2.2.4.min.js
  15. // ==/UserScript==
  16.  
  17. (function ($) {
  18. 'use strict';
  19.  
  20. // https://gf.qytechs.cn/system/screenshots/screenshots/000/009/041/thumb/01.png?1510497297
  21. // https://gf.qytechs.cn/system/screenshots/screenshots/000/009/041/original/01.png?1510497297
  22. $('.user-screenshots a img').each(function () {
  23. var $this = $(this);
  24. var width = this.clientWidth, height = this.clientHeight;
  25. var url = $this.attr('src').replace('thumb', 'original');
  26. $this.attr('src', url)
  27. .attr('width', width)
  28. .attr('height', height);
  29. });
  30. })(jQuery);

QingJ © 2025

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