Event Listeners list

Adds a method to elements to get their event listeners

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
tumnegg
Усталяванняў за дзень
0
Усяго ўсталяванняў
22
Рэйтынг
0 0 0
Версія
1.0.1
Створаны
30.01.2020
Абноўлены
02.04.2020
Памер
1.3 КБ
Ліцэнзія
MIT
Ужываецца на
Усе сайты

Adds a listEventListeners method to every element that returns an array containing every event added to that listener.

A quick example:

const el = document.getElementById("my-test-element");
el.addEventListener("click", doSomething);
el.listEventListeners(); // returns {"click":[doSomething]}
el.listEventListeners("click"); // returns [doSomething]