From 32e91464189b7e5458eb698616025adbb05b5eab Mon Sep 17 00:00:00 2001 From: V Date: Sat, 31 Jul 2021 03:37:47 +0200 Subject: My girlfriend is incorrigible --- content.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content.js b/content.js index 1ea1429..5f1d36a 100644 --- a/content.js +++ b/content.js @@ -10,7 +10,7 @@ function decodeHtml(str) { return doc.documentElement.textContent } -// decodes an obfuscated e-mail +// decodes an obfuscated e-mail address function decode(data) { const [key, ...encoded] = data.match(/.{2}/g).map(e => parseInt(e, 16)) const bytes = encoded.map(e => String.fromCharCode(e ^ key)).join('') @@ -19,7 +19,7 @@ function decode(data) { return decodeHtml(decodeUtf8(bytes)) } -// processes a document fragment for obfuscated e-mails +// processes a document fragment for obfuscated e-mail addresses function process(root) { // mailto links // format: ... @@ -33,7 +33,7 @@ function process(root) { } } - // everything else Cloudflare thinks is an e-mail + // everything else Cloudflare thinks is an e-mail address // format: [email protected] for (const node of root.querySelectorAll('.__cf_email__')) node.replaceWith(decode(node.getAttribute('data-cfemail'))) -- cgit 1.4.1