• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

mrishab/google-photos-delete-tool: Tool for deleting all photos from the Google ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

mrishab/google-photos-delete-tool

开源软件地址(OpenSource Url):

https://github.com/mrishab/google-photos-delete-tool

开源编程语言(OpenSource Language):

JavaScript 100.0%

开源软件介绍(OpenSource Introduction):

Google Photos Delete All Tool

If you have ever wanted to delete your thousands of photos from the Google Photos but failed to find an easy way to do so, then this is the tool for you. This script goes through all your photos in Google Photos app on the desktop and deletes them. You can visually see the process while it happens!

Getting Started

Follow the step-by-step instructions below to run the tool.

Prerequisites

Assumptions

The manual steps assume that these steps are performed on the Google Chrome Browser. If you're using a different browser, the steps still remain the same, however, the keyboard shortcuts or browser specific keywords may not be same for you, as described below.

Steps

  1. Login into your Google Account.

Google Account Sign-in Page

  1. Go to Google Photos

Google Photos Page

Note: If you're logged into Google, you will see your images.

  1. Disable image loading for Google Photos on your browser to avoid high cpu,ram and network usage

    • On Chrome

      1. Click on the site padlock ( the lock icon along the url bar) -> Site settings

      2. Block images in the Permissions for the website

      Google Chrome Right Click Pop-up Menu

      1. Reload Google Photos
  2. Open Developer Tools. You can do so by following either of the three options

    • Keyboard Shortcut

      Press the three keys together in the sequence - CTRL + SHIFT + I

    • From the Page

      Right click on an empty area with your mouse and select Inspect (last option)

      Google Chrome Right Click Pop-up Menu

    • From Menu

      1. Click on the menu button Google Chrome Menu Icon on Google Chrome (By default, the button is present on the top right corner of the window).

      2. Select More tools.

      3. Select Developer tools.

      Google Chrome Menu Developer Tools

  3. After opening the developer tools, click on the Console tab. Google Chrome Console on Google Photos page

    Note: This console lets you run custom code, like this tool! You can learn about it on Google Console page.

    You will see a warning from Google to stay cautious. If you run code in this console that's malicious, you could be hacked. Therefore, make sure that you only run the code that you understand.

  4. Copy all the code in the file delete_photos.js and paste it in the console. The Code in Chrome Console

    Note: The script allows you to delete all photos or any number of photos. To delete a specific number of photos, change the value of maxImageCount as provided in the example.

  5. Hit ENTER button after pasting the script in the console. The script will start running upon hitting ENTER key.

  6. Done! Now, you should see the script delete all your photos in the batch

Debugging

The script may not work as expected in case your internet speed is considerably slow. In that case, you may want to increase the DELETE_DELAY_CYCLE by few thousands of milliseconds. This is to ensure that the page has refreshed before the tool tries to delete the images again.

FAQs

  1. It checks and unchecks the photos, but doesn't delete them.

  2. It stops after deleting some images.

    • Increase the DELETE_DELAY_CYCLE by thousands of milliseconds as described in the Debugging section.
  3. There was a delay in loading images and the tool exited.

    • In case this happens, you can simply paste the script again and hit enter. The script will continue doing the operation. If you're using, you wouldn't have to copy and paste again. If you press the up arrow key, it will load the last command that you ran in the console. Hit ENTER key and the script will start again.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap