內容簡介
這個 WordPress 外掛提供一些小功能,有助於你的網站更好地運行,特別是在「某些國家」。目前此外掛所提供的功能有:
用 Qihoo 360 鏡像替換 Google 字體
某些國家封鎖 Google 字體(例如 Open Sans)。將字體 URL 從 Google 字體(fonts.googleapi.com)替換為 Qihoo 360 鏡像(fonts.useso.com)。
用本地預設圖像替換 Gravatar 圖像
某些國家封鎖 Gravatar 圖像。將圖像 URL 從 Gravatar(*.gravatar.com)替換為本地的預設圖像。
添加頁面的 Meta 關鍵字和描述
此功能用於搜索引擎優化(SEO)。在網頁上添加 Meta 關鍵字和描述,更容易被搜索引擎分類。此功能將添加文章的標籤到頁面 meta 關鍵字,並添加文章概述到頁面 meta 描述。
通過驗證碼防止垃圾評論
匿名讀者在提交評論前必須輸入三位數的驗證碼。驗證碼是隨機的,將由前端和後端驗證。這不會給用戶帶來太多不便,但可以很容易地預防大部分垃圾評論。它肯定存在黑客攻擊的漏洞。但我相信對於大多數網站來說,黑客花費大量時間去攻破它是不值得的。
允許用戶在博客和頁面上添加“返回頂部”按鈕
當用戶向下滾動博客和頁面的屏幕時,“返回頂部”按鈕將顯示在屏幕右下角。當點擊它時,頁面將返回到頂部。這是一個方便的功能,讓用戶可以快速回到頁面頂部。
允許用戶在頁面標頭添加代碼
當使用像百度分析這樣的分析工具時,它會要求您在 HTML head 標記中添加一段腳本。該外掛允許您將腳本內容保存到配置中,並將其自動添加到頁面中。
啟用主動提交文章鏈接到百度
百度站長平台於 2015 年公布了主動提交鏈接功能。相比於百度站點地圖,它可以在您發布文章時立即提交文章鏈接,這樣百度就可以立即將其歸檔。它還可以防止第三方網站轉載您的文章並在之前提交到百度。請注意,在啟用此功能之前,您應該在百度站長平台上請求一個 token,並在選項頁面中輸入該 token。此外,請確保在您的 Web 服務器上安裝了 php5-curl 模塊。
添加文章版權聲明
在文章末尾添加一個簡單的聲明來宣布版權。此外,它還為其他網站複製文章提供了一個包含鏈接的鏈接。
外掛標籤
開發者團隊
原文外掛簡介
该WordPress插件提供的小功能将有助你的网站运行的更好。
The WordPress plugin that provides small functions to help your website working better, especially in “some countries”. The functions this plugin currently provides:
Replace Google fonts by Qihoo 360 mirror
Google fonts (such as Open Sans) are blocked in “some countries”. Replace the font URL from Google fonts (fonts.googleapi.com) to Qihoo 360 mirror (fonts.useso.com).
Replace Gravatar images by local default image
Gravatar images are blocked in “some countries”. Replace the image URL from Gravatar (*.gravatar.com) to local default image.
Add page meta keywords and description
This function is for SEO (Search Engine Optimization). Meta keywords and description on page are more easily to be categorized by search engine. The function will add the tags of articles to page meta keywords, and add summary of articles to page meta description.
Prevent spam with validation code
The anonymous reader must input a 3-digits number of validation code before submit a comment. The number is random and will be verified by both front end and back end. This won’t bring much inconvenient to user, but can be easily prevent most of the spam comments. It definitely has the hole for hackers to attack. However I believe for most of the websites, it is not worth for hackers to spent much time to break it.
Allow user to add “Back-to-Top” button on blogs and pages
When the user scoll down the screen of blogs and pages, a “Back-to-Top” will appear at bottom-right of the screen. When you can click it, the page will go back to the top. This is a convenient function that let users quickly go to the page head.
Allow user to add code to page head
When using analytics tool like Baidu Analytics, it will ask you to add a piece of script in HTML head tag. The plugin allow you to save the content of script on configuration, and it will automatically put it to page.
Enable post link actively submitted to Baidu
Baidu Zhanzhang platform published the active link submission function in 2015. Compare to Baidu Sitemap, it can submit the link of your article immediately when you post it, so that Baidu can archive it at once. It can also prevent the 3rd party site reposting your article and submit to Baidu beforehand. Note that you should request for a token on Baidu Zhanzhang, and enter the token in option page before enabling it. Also, make sure you have php5-curl module installed on your web server.
Add article copyright
Add a simple claim at the end of the article to announce the copyright. Also, it provides a link for others to include when copying the article to other website.
