mirror of
https://github.com/rastvl/akamai-deobfuscator-2.0.git
synced 2025-04-17 00:27:07 +08:00
20 lines
597 B
JavaScript
20 lines
597 B
JavaScript
const defineAddEventListener = window => {
|
|
// const windowAddEventListener = window.addEventListener;
|
|
// window.addEventListener = function(type, listener, opts) {
|
|
// setTimeout(() => {
|
|
// listener();
|
|
// }, 1000);
|
|
// }
|
|
|
|
// const documentAddEventListener = document.addEventListener;
|
|
|
|
const addEventListener = window.EventTarget.prototype.addEventListener;
|
|
window.EventTarget.prototype.addEventListener = function(type, listener, opts) {
|
|
setTimeout(() => {
|
|
listener(new window.UniversalEvent(type));
|
|
}, 1000);
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = defineAddEventListener; |