PTT Imgur Fix

修正 Imgur 在 PTT 上的問題

当前为 2019-03-21 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

作者
eight
评分
0 0 0
版本
0.5.0
创建于
2017-03-18
更新于
2019-03-21
大小
7.8 KB
兼容性
与 Firefox 兼容 与 Chrome 兼容
许可证
MIT
适用于

PTT Imgur Fix

一個用於 PTT Web 版的 userscript。

在 2017/3/17 後,由於 imgur 封鎖來自 ptt.cc 的 referer,站方改用 imgur 所提供的 embed.js 做圖片嵌入。但是嵌入後的圖片是縮圖,對於 PC 使用者反而不如原始嵌入來得方便。

參考︰

Features

Install

https://greasyfork.org/scripts/28264-ptt-imgur-fix

Compat notes

Changelog

  • 0.5.0 (Mar 21, 2019)

    • Breaking: add lazy load option.
  • 0.4.3 (Nov 24, 2018)

    • Fix: failed to load images in Chrome.
  • 0.4.2 (Apr 13, 2018)

    • Add: youtube player parameters option.
  • 0.4.1 (Nov 26, 2017)

    • Use no-referrer for normal images. Some sites (e.g. gamer.com.tw) restricted referrer from ptt.
  • 0.4.0 (Sep 20, 2017)

    • Add embed imgur album option.
  • 0.3.1 (Jun 22, 2017)

    • Add embed image option.
  • 0.3.0 (Apr 1, 2017)

    • Fix: sometimes richcontent is not inserted in push content.
    • Fix: twitter pattern.
    • Fix: m.imgur.com is not matched.
    • Refactor, the original richcontent is always removed.
    • Add embedYoutube option.
    • 加入精華區 URL.
  • 0.2.1 (Mar 30, 2017)

    • Remove unused code.
  • 0.2.0 (Mar 30, 2017)

    • "gallery" is not a valid imgur id.
    • Add twitter image, expand to ...:orig.
    • Remove original .richcontent element.
  • 0.1.1 (Mar 19, 2017)

    • Compat with chrome.
  • 0.1.0 (Mar 19, 2017)

    • First release.