aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcesar <cesar@noreply.codeberg.org>2021-03-21 23:46:13 +0100
committercesar <cesar@noreply.codeberg.org>2021-03-21 23:46:13 +0100
commitbed4bcc8423b1a297b0582963801af9365fc9807 (patch)
treed0ff10b8a4e94105c7dcda36af07023340f7a424
parentcc069374d362b0c70ac54a259f8e4a5e039b32ab (diff)
downloadcloudflare-tor-bed4bcc8423b1a297b0582963801af9365fc9807.tar.lz
cloudflare-tor-bed4bcc8423b1a297b0582963801af9365fc9807.tar.xz
cloudflare-tor-bed4bcc8423b1a297b0582963801af9365fc9807.zip
Delete 'addons/bcmaCR/cs.js'
-rw-r--r--addons/bcmaCR/cs.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/addons/bcmaCR/cs.js b/addons/bcmaCR/cs.js
deleted file mode 100644
index bc3393ba..00000000
--- a/addons/bcmaCR/cs.js
+++ /dev/null
@@ -1,49 +0,0 @@
-if (document.body && !location.hostname.endsWith('.onion')) {
- chrome.runtime.onMessage.addListener((a, b, c) => {
- if (a[0] == location.hostname && a[1]) {
- if (a[2]) {
- let _tt = document.title;
- function codeBy_Sw_updateBorder() {
- if (!document.title.startsWith('[!!MITM')) {
- document.title = '[!!MITM!!]' + _tt;
- }
- document.body.style = 'border:6px dashed #' + ['e74c3c', '9b59b6', '3498db', '17a589', '196f3d', 'f4d03f', 'f39c12', 'd35400'][Math.floor(Math.random() * 8)] + ' !important';
- setTimeout(codeBy_Sw_updateBorder, 6500);
- }
- codeBy_Sw_updateBorder();
- }
- if (a[3]) {
- function codeBy_smege1001_decodeEmail(hash) {
- let decoded = '',
- hashArray = [];
- for (let hAIndex = 0; hAIndex < hash.length; hAIndex += 2) {
- hashArray.push(parseInt(hash.substring(hAIndex, hAIndex + 2), 16));
- }
- let key = hashArray[0];
- for (let index = 1; index < hashArray.length; index++) {
- decoded += String.fromCharCode(hashArray[index] ^ key);
- }
- return decoded;
- }
- document.querySelectorAll('.__cf_email__[data-cfemail]:not(a)').forEach(a => {
- let aV = a.dataset.cfemail;
- if (/^([a-f0-9]{4,})$/.test(aV)) {
- a.dataset.cfemail = '';
- a.innerText = codeBy_smege1001_decodeEmail(aV);
- }
- });
- document.querySelectorAll("a.__cf_email__[data-cfemail]").forEach(a => {
- let aV = a.dataset.cfemail;
- if (/^([a-f0-9]{4,})$/.test(aV)) {
- a.dataset.cfemail = '';
- a.innerText = codeBy_smege1001_decodeEmail(aV);
- a.href = 'mailto:' + a.innerText;
- }
- });
- }
- }
- c(true);
- return;
- });
- chrome.runtime.sendMessage(['cs', location.hostname]);
-} \ No newline at end of file