aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmege1001 <smege1001@aaathats3as.com>2020-07-31 03:48:16 +0100
committersmege1001 <smege1001@aaathats3as.com>2020-07-31 03:48:16 +0100
commit29485e3b1f28cfb63c5424f273d8c32d47ec1d88 (patch)
tree7d667fb0e63d79e170a619f36143ec4066a7ab83
parent9e05025a6aa8f998e6617c61233f0529eaa130da (diff)
downloadcloudflare-tor-29485e3b1f28cfb63c5424f273d8c32d47ec1d88.tar.lz
cloudflare-tor-29485e3b1f28cfb63c5424f273d8c32d47ec1d88.tar.xz
cloudflare-tor-29485e3b1f28cfb63c5424f273d8c32d47ec1d88.zip
oops
-rw-r--r--cfemail.user.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/cfemail.user.js b/cfemail.user.js
index 24a6d469..2dbfe334 100644
--- a/cfemail.user.js
+++ b/cfemail.user.js
@@ -43,10 +43,10 @@ for (var linksIndex = 0; linksIndex < links.length; linksIndex++) {
var linkChild = link.getElementsByClassName("__cf_email__")[0];
linkChild.innerText = decodedEmail;
- link.removeAttribute("data-cfemail");
- link.classList.remove("__cf_email__");
+ linkChild.removeAttribute("data-cfemail");
+ linkChild.classList.remove("__cf_email__");
- if (link.getAttribute("class") == "") link.removeAttribute("class");
+ if (linkChild.getAttribute("class") == "") linkChild.removeAttribute("class");
}
} else if (emailprotectionURLNoHashRegex.test(link.href) && link.hasAttribute("data-cfemail")) {
var hash = link.getAttribute("data-cfemail");