Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Plugin]题图 #2488

Open
Kenshin opened this issue Jul 5, 2021 · 1 comment
Open

[Plugin]题图 #2488

Kenshin opened this issue Jul 5, 2021 · 1 comment

Comments

@Kenshin
Copy link
Owner

Kenshin commented Jul 5, 2021

描述

为你的阅读模式提供 题图

地址

https://simpread.ksria.cn/plugins/details/PcmPCT9rgM

效果

可以 模仿 Safari 阅读模式样式 配合使用。

image

选项

随便进入一个页面 e.g. https://sspai.com/post/71576 并进入 阅读模式 → 右下角 → 动作 → 插件触发器

按照下图所示即可查看此插件的选项页。(注意:如果你的界面没有插件触发器,请根据此 解决方案 修复。

image

功能

  1. 设置题图来源,包括:当前页的题图 正文的第一张图片 Unsplash 来源

    image

  2. 一般使用题图建议安装 模仿 Safari 阅读模式样式 后,可得到(最上面第一个图的效果)

    image
  3. 支持使用 Unsplash 做作为题图,并支持 定制化

    image
  4. 当题图的宽度小于布局时,是否使用 Unsplash 作为背景源

    image
  5. 白名单机制

    image

注意

Unsplash Source 彻底下线 了,所以当你在使用题图时遇到了下图所示的效果,请升级到 1.1.0(含),即可自动解决此问题。

image

更新日志

1.1.1

  • Fix 当题图小于宽度时不显示题图的错误 #5797

1.1.0

  • Add 更换 Unsplash Source 改为 Unsplash API

  • Add 定制 Query 参数

  • Add 定制 Size 参数

  • Optimize 去掉 un_source 相关逻辑

  • Optimize 题图的设置逻辑,依次为:白名单、Unsplash、题图、正文第一个图

  • Optimize 更改 白名单 为专门用于定制的参数

1.0.5

1.0.4

  • 修复 某些页面样式错误问题

  • 当题图的宽度小于布局时,是否使用 Unsplash 来源?

  • 题图来源设置为:当前页的题图 正文的第一张图片 Unsplash 来源

1.0.3

版本号初始变更为 1.0.0

1.0.2(原 0.0.2)

  • 修复加入稍后读后多个 sr-rd-title 的问题

  • favicon size 错误

1.0.0(原 0.0.1)

  1. 自动获取当前页面的题图

  2. 当没有题图时,可选:

引申

安装插件或带有插件触发器的插件失效的 解决方案

Repository owner locked as off-topic and limited conversation to collaborators Jul 5, 2021
@Kenshin
Copy link
Owner Author

Kenshin commented Jul 5, 2021

如需讨论请前往 #2487

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant