{"id":27313,"date":"2023-08-15T15:35:21","date_gmt":"2023-08-15T07:35:21","guid":{"rendered":"https:\/\/cravatar.com\/developer\/?p=27313"},"modified":"2023-08-15T15:36:00","modified_gmt":"2023-08-15T07:36:00","slug":"for-emlog","status":"publish","type":"post","link":"https:\/\/cravatar.com\/developer\/for-emlog","title":{"rendered":"\u4e3a Emlog \u96c6\u6210"},"content":{"rendered":"\n
\u76ee\u524d emlog \u5b98\u65b9\u6700\u65b0\u7248\u5df2\u652f\u6301 Cravatar \u5934\u50cf\uff0c\u5982\u679c\u662f\u65e7\u7248\u672c\u7b49\u60c5\u51b5\u53ef\u4ee5\u5c1d\u8bd5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u624b\u52a8\u96c6\u6210\u3002<\/p>\n\n\n\n
<script>\nconst avaUrl = 'https:\/\/cravatar.cn\/avatar\/'\n\nfunction alterAva(docName){\n for(let index = 0; index < $(docName).length; index++){\n\n let t_patt1 = new RegExp("[0-9a-z]{20,}");\n let t_grasrc = $(docName + ":eq("+ index +")").attr("src")\n\n let t_result = avaUrl + t_patt1.exec(t_grasrc) + '?s=40';\n\n $(docName + ":eq("+ index +")").attr("src",t_result)\n }\n}\n\nalterAva(".comment-info_img")\nalterAva(".avatar img")\n<\/script><\/code><\/pre>\n\n\n\n<\/p>\n\n\n\n
\n\u539f\u8d34\u6765\u81ea\uff1a \u5bf9\u4e8e\u76ee\u524d avatar \u5934\u50cf\u4e0d\u663e\u793a\u7684\u95ee\u9898\uff0c\u6682\u65f6\u4f7f\u7528\u8fd9\u4e2a\u65b9\u6cd5\u89e3\u51b3<\/a><\/p>\n\n\n\n