這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

CSS Email Obfuscator

描述

Obfuscate your email address by using a simple shortcode. Because the obfuscation is purely done in CSS, the email address remains readable for screen reader software.

Usage

Email address only:

[css-email-obfuscator]you@example.com[/css-email-obfuscator]

Clickable email address:

[css-email-obfuscator mailto="yes"]you@example.com[/css-email-obfuscator]

Clickable email address with custom link text:

[css-email-obfuscator mailto="yes" email="you@example.com"]Contact me[/css-email-obfuscator]

螢幕截圖

  • Email address only
  • Clickable email address
  • Clickable email address with custom link text

安裝

  1. Upload the css-email-obfuscator folder to /wp-content/plugins/
  2. Activate the plugin (CSS Email Obfuscator) through the Plugins menu in WordPress
  3. Use the shortcode in any post, page or custom post type.

常見問題

Is JavaScript required to obfuscate the email address?

No. This solution is purely based on CSS and won’t use JavaScript at all.

Are screen readers able to read the obfuscated email address?

Yes, because obfuscation is made using pure CSS.

Is the clickable email address still obfuscated?

Yes, but due to the limitations of CSS, the contents of the href attribute will be encoded as ASCII entities.

Does the plugin work with punnycode (umlaut) domains in email addresses?

Yes, as long as your blog’s charset is set to UTF-8 (wich is default).

評價

2020年4月5日
I was in need of hiding email addresses, and installed CSS Email Obfuscator. It has worked great so far. It opens my email client properly.
閱讀全部2個評價

貢獻者及開發者

“CSS Email Obfuscator” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 CSS Email Obfuscator 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.0

  • Initial release