Typecho修改gravatar头像源为国内服务器源

Typecho修改gravatar头像源为国内服务器源

Tod
Tod
2023-09-23 / 0 评论 / 0 阅读 / 正在检测是否收录...

  打开var/Typecho/Common.php,找到下面的代码,大概在939行。

$url = $isSecure ? 'https://secure.gravatar.com' : 'http://www.gravatar.com';

  替换为:

$url = $isSecure ? 'https://gravatar.loli.net' : 'https://sdn.geekzu.org';

  一些可用的Gravatar头像源,来自博主菊花的收集

gravatar官方的www源 https://www.gravatar.com/avatar/
gravatar官方的cn源 https://cn.gravatar.com/avatar/
gravatar官方的en源 https://en.gravatar.com/avatar/
gravatar官方的secure源 https://secure.gravatar.com/avatar/
V2EX源 https://cdn.v2ex.com/gravatar/
Loli源 https://gravatar.loli.net/avatar/
极客族 https://sdn.geekzu.org/avatar/
0

评论 (0)

取消