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
Daily installs
0
Total installs
22
Ratings
0 0 0
وەشان
1.0.1
Created
2020-01-30
Updated
2020-04-02
Size
1.31 KB
مۆڵەت
MIT
Applies to
هەموو سایتەکان

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]