// Removes all event handlers of any kind:
jQuery('*').each(function(){try {this.outerHTML = this.outerHTML} catch (e) {}});
// Only Chrome developer tools:
jQuery('*').each(function(){try {getEventListeners(this).click.forEach(function(handler){handler.remove()})} catch (e) {}});
//TypeError: handler.remove is not a function ???
Remove all click handlers from the page (for debugging).
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.