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!)

Forfatter
tumnegg
Daglige installasjoner
0
Totale installasjoner
22
Vurderinger
0 0 0
Versjon
1.0.1
Lagd
30.01.2020
Oppdatert
02.04.2020
Size
1,3 kB
Lisens
MIT
Gjelder
Alle sider

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]