I make a bot that removes unnecessary messages in Gmail.

I was able to click the checkbox for selecting all letters as follows:

$(".T-Jo-auh:first").click(); 

But I can not click the "delete" button programmatically. I tried first to direct then press but nothing happened:

  $(".TI.J-J5-Ji.nX.TI-ax7.TI-Js-Gs.ar7").dispatchEvent(new Event('mouseover')); $(".TI.J-J5-Ji.nX.TI-ax7.TI-Js-Gs.ar7.TI-JW").click(); 

Please help solve the problem.

  • And just cause the action that they have when you press a button? Of course, by incorporating his code into the page so that he would get access to the JS of the page itself - Mike
  • one
    It is better to stay away from such extensions. - Qwertiy
  • "To cause the action that they have going on." Here please in more detail. How to call? - Victor
  • When you have 6k emails, most likely you will need such an application to delete them automatically. - Victor

0