https://github.com/bindreams/event-listener-introspection
https://github.com/bindreams/event-listener-introspection
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bindreams/event-listener-introspection
- Owner: bindreams
- License: mit
- Created: 2022-12-12T22:15:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-07T15:31:01.000Z (about 1 year ago)
- Last Synced: 2025-03-07T16:29:51.889Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Event Listener Introspection
Install this in your greasemonkey script to enable control over event listeners: inspection, modification, and removal.
```javascript
// ==UserScript==
// ...
// @require https://raw.githubusercontent.com/andreasxp/event-listener-introspection/main/eli.js
// ...
// ==/UserScript==
installEventListenerIntrospection();
(function() {
'use strict';
let obj = document.getElementById("block-clicks-here");
obj.removeEventListeners("click");
})();
```
# Installation
Add the following line to your greasemonkey script header:
```javascript
// @require https://raw.githubusercontent.com/andreasxp/event-listener-introspection/main/eli.js
```
Then install the introspection patch by calling the function as early as possible:
```javascript
installEventListenerIntrospection();
```