0

I have too many Google Photos assistant's cards accumulated Google Photos Assistant page

How would I dismiss all those cards at once using JavaScript?

adiga
  • 34,372
  • 9
  • 61
  • 83
ViliusK
  • 11,345
  • 4
  • 67
  • 71

1 Answers1

0

With JavaScript it's possible to do like this:

 var buttons = document.getElementsByClassName("VfPpkd-Bz112c-LgbsSe material-icons-extended   VxYl6");

 for(var i = 0; i < buttons.length; i++)
      if(buttons[i].getAttribute('aria-label') == 'Dismiss')
           buttons[i].click();

Update re HOW TO APPLY THIS CODE:

  1. Open Developer Tools (CMD+Option+I, or Menu->More Tools->Developer Tools)
  2. Select Console tab
  3. Paste the above code
ViliusK
  • 11,345
  • 4
  • 67
  • 71
  • I dont know how to apply this code, could you please walk me through? – Ceyhun Özsoylu Apr 14 '20 at 13:34
  • @CeyhunÖzsoylu, I've added instructions: Update re HOW TO APPLY THIS CODE: 1. Open Developer Tools (CMD+Option+I, or Menu->More Tools->Developer Tools) 2. Select Console tab 3. Paste the above code – ViliusK Apr 15 '20 at 20:27