2022-06-24 19:30:06 -04:00
|
|
|
if (document.body && !location.hostname.endsWith('.onion')) {
|
|
|
|
browser.runtime.onMessage.addListener((a, b, c) => {
|
|
|
|
if (a[0] == location.hostname && a[1]) {
|
|
|
|
if (a[2]) {
|
|
|
|
let _tt = document.title;
|
|
|
|
function watchTitle() {
|
|
|
|
if (!document.title.startsWith('[!!MITM')) {
|
|
|
|
document.title = '[!!MITM!!]' + _tt;
|
|
|
|
}
|
2022-06-28 02:14:15 -04:00
|
|
|
setTimeout(watchTitle, 4500);
|
2022-06-24 19:30:06 -04:00
|
|
|
}
|
|
|
|
watchTitle();
|
2022-06-28 02:14:15 -04:00
|
|
|
}
|
|
|
|
let _canUseCSS = true,
|
|
|
|
_bCSS;
|
|
|
|
try {
|
|
|
|
_bCSS = new CSSStyleSheet();
|
|
|
|
document.adoptedStyleSheets = [...document.adoptedStyleSheets, _bCSS];
|
|
|
|
} catch (e) {
|
|
|
|
_canUseCSS = false;
|
|
|
|
}
|
|
|
|
if (a[5]) {
|
|
|
|
function watchBorder() {
|
|
|
|
let _color = ['e74c3c', '9b59b6', '3498db', '17a589', '196f3d', 'f4d03f', 'f39c12', 'd35400'][Math.floor(Math.random() * 8)];
|
|
|
|
if (_canUseCSS) {
|
|
|
|
_bCSS.replaceSync('html,body{box-shadow: 0 0 3px #fff inset,0 0 3px #fff,0 0 10px #' + _color + ' inset !important}');
|
|
|
|
} else { //remove this when esr>91
|
|
|
|
document.body.style = 'box-shadow: 0 0 3px #fff inset,0 0 3px #fff,0 0 10px #' + _color + ' inset !important';
|
|
|
|
document.documentElement.style = 'box-shadow: 0 0 3px #fff inset,0 0 3px #fff,0 0 10px #' + _color + ' inset !important';
|
|
|
|
}
|
|
|
|
setTimeout(watchBorder, 3500);
|
|
|
|
}
|
|
|
|
watchBorder();
|
|
|
|
}
|
|
|
|
if (a[6]) {
|
|
|
|
function watchInners() {
|
|
|
|
let _color = ['e74c3c', '9b59b6', '3498db', '17a589', '196f3d', 'f4d03f', 'f39c12', 'd35400'][Math.floor(Math.random() * 8)];
|
|
|
|
if (_canUseCSS) {
|
|
|
|
_bCSS.replaceSync('div,section{box-shadow: 0 0 3px #fff inset,0 0 3px #fff,0 0 10px #' + _color + ' inset !important}');
|
|
|
|
}
|
|
|
|
setTimeout(watchInners, 3500);
|
2022-06-24 19:30:06 -04:00
|
|
|
}
|
2022-06-28 02:14:15 -04:00
|
|
|
watchInners();
|
2022-06-24 19:30:06 -04:00
|
|
|
}
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
if (a[4]) {
|
|
|
|
function chgFavicon() {
|
|
|
|
if (document.getElementsByTagName('head')[0]) {
|
|
|
|
document.querySelectorAll("link[rel~='icon']").forEach(e => e.remove());
|
|
|
|
let link = document.createElement('link');
|
|
|
|
link.rel = 'icon';
|
|
|
|
link.href = 'data:image/x-icon;base64,AAABAAUAEBAAAAEAIABoBAAAVgAAABgYAAABACAAiAkAAL4EAAAgIAAAAQAgAKgQAABGDgAAMDAAAAEAIACoJQAA7h4AAEBAAAABACAAKEIAAJZEAAAoAAAAEAAAACAAAAABACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AKfN+2iMvvmGjL75hoy++YaMvvmGjL75hoy++YaMvvmGjL75hoy++Yacx/qGtuD9hp3V/Iad1fyGndX8hr3j/VpkqPi0IIL1/yCC9f8ggvX/IIL1/yCC9f8ggvX/IIL1/yCC9f8ggvX/QpX2/8zp/f9OtPv/QK77/0Cu+/9zw/y80eX8Ni6K9fAggvX/IIL1/z+T9v9bo/f/Yab3/2ep+P9srfj/crD4/5DA+v/x9/7/vuP9/33I/P9Ns/v/mtT8iP///wDw9v4Uba34qiCC9f8ggvX/IIL1/yCC9f8ggvX/IIL1/yCC9f8ggvX/W6P3/2q/+/9Arvv/ZL370PP5/hL///8A////ALvZ+1AggvX/IIL1/yCC9f8ggvX/IIL1/yCC9f8ggvX/IIL1/yCC9f+y2/yQv+P9WPr8/gj///8A////AP///wD///8A0eX8NsLd/EhmqfiyIIL1/yCC9f8ggvX/IIL1/yCC9f9Clfba/f3+BP///wD///8A////AP///wD///8A////AP///wD///8A6vP+GkeY9tQggvX/IIL1/yCC9f81jvXo1ef9Mv///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD5/P4Is9T7WI/A+YKozvtm8vf+EP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//AAD//wAA//8AAP//AACAAQAAAAAAAIAAAADAAQAA4AcAAPgPAAD8HwAA/38AAP//AAD//wAA//8AAP//AAAoAAAAGAAAADAAAAABACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+Av///wD+/v4C/v7+Av///wD+/v4C/v7+Av///wD+/v4C/v7+Av///wD+/v4C////AP7+/gL///8A////AP7+/gL///8A////AP7+/gL///8A////AP7+/gL///8A/v7+Av7+/gD+/v4C/v7+Av7+/gD+/v4C/v7+Av7+/gD+/v4C/v7+Av7+/gD+/v4C/v7+Av7+/gL+/v4C/v7+Av7+/gL+/v4C/v7+Av7+/gL+/v4C/v7+Av7+/gL+/v4C////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/v7+Av///wD+/v4C/v7+Av///wD+/v4C/v7+Av///wD+/v4C/v7+Av///wD+/v4C////AP7+/gL///8A////AP7+/gL///8A////AP7+/gL///8A////AP7+/gL///8A/v7+Av7+/gD+/v4C/v7+Av7+/gD+/v4C/v7+Av7+/gD+/v4C/v7+Av7+/gD+/v4C/v7+Av7+/gL+/v4C/v7+Av7+/gL+/v4C/v7+Av7+/gL+/v4C/v7+Av7+/gL+/v4C////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A2er9LsPd/EjD3fxIw938SMPd/EjD3fxIw938SMPd/EjD3fxIw938SMPd/EjD3fxIw938SMPd/EjD3fxIw938SOjz/kjL6f1Iy+n9SMvp/UjL6f1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7+Av///wDQ5Pw6LIj18iCC9f8ggfT/IIL1/yCB9P8ggvX/IIL1/0OW9trt9f4W////AP7+/gL///8A////AP7+/gL///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A2+v9LF2k97whgvX/IIL1/yCC9f8mhfX4eLP4nvD2/hT///8A////AP7+/gD///8A////AP7+/gD///8A/v7+Av7+/gL+/v4C/v7+Av7+/gL+/v4C/v7+Av///wL+/v4C/v7+Av///wLp8/4cx9/8RMvi/D7z+P4Q////Av7+/gL///8C////Av7+/gL///8C////Av7+/gL///8C/v7+Av///wD+/v4C/v7+Av///wD+/v4C/v7+Av///wD+/v4C/v7+Av///wD+/v4
|
|
|
|
document.getElementsByTagName('head')[0].appendChild(link);
|
|
|
|
setTimeout(chgFavicon, 4500);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
chgFavicon();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
c(true);
|
|
|
|
return;
|
|
|
|
});
|
|
|
|
browser.runtime.sendMessage(['cs', location.hostname]);
|
|
|
|
}
|