Перейти к содержимому

Как удалить все пароли google (скрипт)

  • автор:

Есть способ через отключение синхронизации, но мне пришлось написать скрипт для расширения автоматизации Chrome UI.Vision RPA:

{
  "Name": "Delete all passwords from Google Password Manager",
  "CreationDate": "2022-5-24",
  "Commands": [
    {
      "Command": "store",
      "Target": "3",
      "Value": "!TIMEOUT_WAIT",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://passwords.google.com/",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "label",
      "Target": "LIST",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "css=[href^=\"password\"]",
      "Value": "",
      "Targets": [
        "xpath=/html/body/c-wiz/div/div[3]/c-wiz/div/c-wiz/c-wiz/div/div/div[3]/div/div/ul/li/div/a/div/div[2]",
        "xpath=//li/div/a/div/div[2]",
        "css=body > c-wiz > div > div.qFCzge > c-wiz > div > c-wiz > c-wiz:nth-child(3) > div > div > div.MTM9Cc.XIk0Fd > div > div > ul > li:nth-child(1) > div.VfPpkd-ksKsZd-XxIAqe.JOYJnb.VfPpkd-ksKsZd-mWPk3d-OWXEXe-Tv8l5d-lJfZMc.VfPpkd-ksKsZd-mWPk3d > a > div > div.GqRghe"
      ],
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!statusOK",
      "Description": ""
    },
    {
      "Command": "verifyElementNotPresent",
      "Target": "name=password",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "gotoIf_v2",
      "Target": "${!statusOK} == true",
      "Value": "delPwd",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "name=password",
      "Value": "",
      "Targets": [
        "name=password",
        "xpath=//*[@id=\"password\"]/div/div/div/input",
        "xpath=//input[@name='password']",
        "xpath=//div/div/div/input",
        "css=#password > div.aCsJod.oJeWuf > div > div.Xb9hP > input"
      ],
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "name=password",
      "Value": "***************** ЗДЕСЬ ВАШ ПАРОЛЬ ОТ ГУГЛА ***********",
      "Targets": [
        "name=password",
        "xpath=//*[@id=\"password\"]/div/div/div/input",
        "xpath=//input[@name='password']",
        "xpath=//div/div/div/input",
        "css=#password > div.aCsJod.oJeWuf > div > div.Xb9hP > input"
      ],
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "xpath=//*[@id=\"passwordNext\"]/div/button/span",
      "Value": "",
      "Targets": [
        "xpath=//*[@id=\"passwordNext\"]/div/button/span",
        "xpath=//button/span",
        "css=#passwordNext > div > button > span"
      ],
      "Description": ""
    },
    {
      "Command": "label",
      "Target": "delPwd",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "xpath=/html/body/c-wiz/div/div[3]/c-wiz/c-wiz/div/div/c-wiz/div/div/div/div[2]/div[3]/div[2]/div/button/span",
      "Value": "",
      "Targets": [
        "xpath=/html/body/c-wiz/div/div[3]/c-wiz/c-wiz/div/div/c-wiz/div/div/div/div[2]/div[3]/div[2]/div/button/span",
        "xpath=//div[3]/div[2]/div/button/span",
        "css=body > c-wiz > div > div.qFCzge > c-wiz > c-wiz > div > div:nth-child(1) > c-wiz > div > div > div > div.MpmAZc > div.MX9ace > div:nth-child(2) > div > button > span"
      ],
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "xpath=/html/body/div[9]/div/div[2]/div[3]/div[2]/span/span",
      "Value": "",
      "Targets": [
        "xpath=/html/body/div[9]/div/div[2]/div[3]/div[2]/span/span",
        "xpath=//div[9]/div/div[2]/div[3]/div[2]/span/span",
        "css=body > div.llhEMd.iWO5td > div > div.g3VIld.fHKvqc.BVDXod.Up8vH.J9Nfi.iWO5td > div.XfpsVe.J9fJmf > div.U26fgb.O0WRkf.oG5Srb.HQ8yf.C0oVfc.kHssdc.HvOprf.FsOtSd.I0k89d.M9Bg4d.qs41qe > span > span"
      ],
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!statusOK",
      "Description": ""
    },
    {
      "Command": "verifyElementPresent",
      "Target": "xpath=/html/body/c-wiz/div/div[3]/c-wiz/c-wiz/div/div/c-wiz/div/div/div/div[2]/div[3]/div[2]/div/button/span",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "gotoIf_v2",
      "Target": "${!statusOK} == true",
      "Value": "delPwd",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!statusOK",
      "Description": ""
    },
    {
      "Command": "verifyElementPresent",
      "Target": "css=[href^=\"password\"]",
      "Value": "",
      "Targets": [
        "xpath=/html/body/c-wiz[2]/div/div[3]/c-wiz/div/c-wiz/c-wiz/div/div/div[3]/div/div/ul/li/div/a/div/div[2]",
        "xpath=//li/div/a/div/div[2]",
        "css=body > c-wiz:nth-child(12) > div > div.qFCzge > c-wiz > div > c-wiz > c-wiz:nth-child(3) > div > div > div.MTM9Cc.XIk0Fd > div > div > ul > li:nth-child(1) > div.VfPpkd-ksKsZd-XxIAqe.JOYJnb.VfPpkd-ksKsZd-mWPk3d-OWXEXe-Tv8l5d-lJfZMc.VfPpkd-ksKsZd-mWPk3d > a > div > div.GqRghe"
      ],
      "Description": ""
    },
    {
      "Command": "gotoIf_v2",
      "Target": "${!statusOK} == true",
      "Value": "LIST",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "COMPLETE!",
      "Value": "",
      "Description": ""
    }
  ]
}

Работает грязно, мне пришлось несколько раз перезапускать, но всё равно не руками.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *