Easy Compare

Compare images

2020-03-02 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

लेखक
Secant
रेटिंग
0 0 0
आवृत्ती
0.1
बनवली
2020-03-02
अपडेट केली
2020-03-02
आकार
9.54 KB
License
GPL-3.0-or-later
यांवर लागू होते:
सर्व संकेतस्थळे

介绍 Introduction

一个作用于任何页面的、用于方便地比较截图的脚本。多用于各大PT站点的对比截图比较,灵感来自于PTP的截图比较脚本,但源码完全不同。

Easy Compare is a script, that applied to any page, aiming to make screenshot comparison handy. This can be widely used in many PT sites. The idea comes from the official PTP Show comparison script, but the code is completely original.

特性 Features

  • 可以在任何页面“就地”进行截图对比,无需重新下载上传;

    Compare screenshots in place without downloading/uploading images to other sites;

  • 可用于不同的图床,且具有扩展性;

    Support multiple image hosts, which can be configured and extended;

  • 进入截图比较模式后,鼠标悬浮在页面图片上方,即可在浏览器中央显示该图的原图。将鼠标在不同的图片上悬停,即可在浏览器中央切换不同图片的原图;

    When activated, hover your mouse above an image on the page, the original image of which will be displayed over the center of the page. Move your mouse among different images on the page and you can switch different original images of them over the center of the page.

  • 配合快捷键可以进行一些便捷操作,包括:

    Several hot-keys are supported for better user experience, including:

    • Esc:退出截图比较模式; Deactivate compare mode;
    • Q:半透明化截图比较界面,以便显示出原页面中的元素; Semi-transparentize the interface, allowing user to view the elements on the page;
    • W:显示往前数第 num 张图片; Display the original image of the nth previous image;
    • E:显示往后数第 num 张图片; Display the original image of the nth next image;
    • [数字键/Num Key]num 的值,默认是 1,有效值为 1-90 会退化为 1。 The value of n in "nth". 1-9 are valid numbers and 0 is recognized as 1.

待办 TODO List

  • 支持更多图床,持续更新;

    Support more image hosts and keep updated;

  • 对于不支持缩略图转原图的链接,通过请求超链接后猜测原图,或根据超链接站点做匹配;

    For thumb images whose sources cannot be converted to original ones, make an HTTP request of the hyper link and guess (or match according to the link) the original image source.

  • 若需实现上条情况,还需要处理匿名跳转链接;

    In order to implement the feature above, anonymous redirection prefixes need to be handled.

  • 支持一些轻量化的本地图片处理操作,包括图片 Diff 等,以增加脚本实用性;

    Support some light-weight image processing operations,including Image Diff, in order to make the script more practical;

  • 支持更多快捷键操作。

    Support more hot-key operations.

演示 Demo

Demo

贡献 Contribute

本脚本暂时不开放多人编辑权限,如有问题和想法请先到反馈页面提交。The script is not open for contribution for now. Please refer to the feedback page in case of any problems or suggestions.

许可 License

GNU General Public License v3.0 or later

捐赠 Donation

支付宝 Alipay微信 Wechat