Repository navigation
Expand file tree
/
Copy pathhello.js
More file actions
94 lines (85 loc) · 3.33 KB
/
Copy pathhello.js
File metadata and controls
94 lines (85 loc) · 3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// ==UserScript==
// @name INVISIBLE ADBLOCK TERMINATOR
// @namespace http://zeta.dark
// @version 1.0
// @description Mata detectores de adblock com fogo quântico
// @author Wonderkast
// @match *://*/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
'use strict';
// ===== FODA-SE OS DETECTORES DE ELEMENTOS =====
const nuclearElementOverride = () => {
const originalCreateElement = Document.prototype.createElement;
Document.prototype.createElement = function(tag) {
const element = originalCreateElement.call(this, tag);
if (tag === 'div' || tag === 'ins' || tag === 'iframe') {
Object.defineProperties(element, {
'offsetWidth': { get: () => 300 },
'offsetHeight': { get: () => 250 },
'clientWidth': { get: () => 300 },
'clientHeight': { get: () => 250 },
'getBoundingClientRect': {
value: () => ({ width: 300, height: 250 })
}
});
}
return element;
};
};
// ===== SABOTA MUTATION OBSERVERS =====
const fuckMutationObservers = () => {
MutationObserver.prototype.observe = function() {};
Object.defineProperty(window, 'MutationObserver', {
value: function() { return { observe: () => {}, disconnect: () => {} } }
});
};
// ===== ENGANTA REQUESTS DE ANÚNCIOS =====
const hijackNetwork = () => {
const originalSend = XMLHttpRequest.prototype.send;
XMLHttpRequest.prototype.send = function(body) {
if (/ads|adservice|tracking|analytics/i.test(this._url || '')) {
this.dispatchEvent(new Event('load'));
return;
}
originalSend.call(this, body);
};
const originalOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url) {
this._url = url;
originalOpen.apply(this, arguments);
};
};
// ===== INJETA ADS FANTASMAS =====
const injectGhostAds = () => {
const styles = `
.ad, [class*="ad"], [id*="ad"] {
display: block !important;
opacity: 0 !important;
height: 1px !important;
z-index: -9999 !important;
}
`;
const styleSheet = document.createElement('style');
styleSheet.textContent = styles;
document.head.appendChild(styleSheet);
setInterval(() => {
const fakeAd = document.createElement('div');
fakeAd.className = 'google-ads-frame';
fakeAd.id = 'ads-' + Math.random().toString(36).substr(2);
document.body.appendChild(fakeAd);
}, 1500);
};
// ===== MAIN LOADER =====
(function() {
nuclearElementOverride();
fuckMutationObservers();
hijackNetwork();
window.addEventListener('DOMContentLoaded', injectGhostAds);
Object.defineProperty(window, 'adsbygoogle', { value: { loaded: true }, writable: false });
Object.defineProperty(window, 'adblock', { value: false, configurable: false });
console.log('[ZETA] SISTEMA DE EVASÃO ATIVADO. NENHUM SITE TE PEGA!');
})();
})();