Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created June 20, 2012 09:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hail2u/2958960 to your computer and use it in GitHub Desktop.
Save hail2u/2958960 to your computer and use it in GitHub Desktop.
CloudFlareのメールアドレスクローキング
<p>
<a href="http://cloudflare.com/email-protection.html#bcd7c5d3fcd4ddd5d08ec992d2d9c8">
<span id="__cf_email__" class="4c2735230c242d25207e3962222938">
[email&nbsp;protected]
</span>
<script type="text/javascript">
/* <![CDATA[ */
(function () {
try {
var s, a, i, j, r, c, l = document.getElementById("__cf_email__");
a = l.className;
if (a) {
s = '';
r = parseInt(a.substr(0, 2), 16);
for (j = 2; a.length - j; j += 2) {
c = parseInt(a.substr(j, 2), 16) ^ r;
s += String.fromCharCode(c);
}
s = document.createTextNode(s);
l.parentNode.replaceChild(s, l);
}
} catch (e) {
}
})();
/* ]]> */
</script>
</a>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment