Skip to content

Instantly share code, notes, and snippets.

@jiyu3
Created March 14, 2017 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jiyu3/1ed4edb20c961da7547b9363c704cafa to your computer and use it in GitHub Desktop.
Save jiyu3/1ed4edb20c961da7547b9363c704cafa to your computer and use it in GitHub Desktop.
ページ内の全てのイベントを監視する ref: http://qiita.com/jiyu/items/c39354bb256062dc7a81
(function() {
let nodes = [].concat(window, [].slice.call(document.getElementsByTagName("*")));
nodes.forEach(node => {
monitorEvents(node, Object.keys(getEventListeners(node)));
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment