Displaying event events in the Firefox console

Each event is clicked in Firefox browser, it should display path and click X message in Firefox console. please suggest me how can i achieve this .... !!!! It should be a Firefox add-on.

+3


source to share


1 answer


Not sure what you mean by the click event message, but you can simply inject a content script that registers the path to the click event:



document.documentElement.addEventListener('click', function(evt) {
  console.log(evt.path);
});

      

+2


source







All Articles