Email Defuscator ObfuscateDefuscate 介绍
About
This is a very simple plugin that allows you to hide email addresses from
spambots while still being accessible. Visitors with JavaScript enabled
browsers will see the email addresses correctly, while those without
JavaScript will be provided with instructions for retrieving your email
address. Spambots will see this same @R_446_4045@ion, but won’t kNow that it’s an
email address.
Obfuscate@H_502_12@
For this plugin to defuscate email addresses, you first have to obfuscate
them. This is very easy. Instead of writing [email protected], you write:
name(put the 'at' sign here)example.com
What goes into the paranthese is up to you. You can even do:
name(replace this paranthese with the 'at' sign to get my email
address)example.com
The Defuscator will recognize the obfuscated email address and defuscate it.
This also works on mailto links such as:
<a href="mailto:name(put the 'at' sign here)example.com">Email me</a>
Defuscate@H_502_12@
Include the plugin and run the .defuscate() function on the elements
containing obfuscated email addresses:
$('p').defuscate();
You can also set it to not create mailto links, like this:
$('p').defuscate({link: false});
It will defuscate multiple email addresses in the given element(s).
Credits
Joakim Stai wrote it and forgot about it.
Ariel Flesler contributed and made Joakim remember to finish it.
disclaimer
Although this works with most spambots, it’s not bullet proof protection. A
spambot that can run JavaScript would be able to see your email address. But
if you’re that paranoid of someone stealing your email address, you shouldn’t
put it out on the web in the first place.
Terms of use: FYI, WFM. YMMV, UAYOR, IANAL. IOW TINLA AFAIC. OWTTE. DQMOT.
MTFBWU. EOM :)
Download
To download, please use this release instead of the one listed below:
http://jquery.com/plugins/node/627
Email Defuscator ObfuscateDefuscate 官网
http://plugins.jquery.com/project/defuscator
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。