SGR007 / Shared-Drives-Creator-Website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ”₯ Google Shared Drives Creator πŸ”₯


Create-Google-Shared-Drive


πŸ“œ Features

  • πŸ”­ Create Shared Drive with your google account
  • πŸ›  100% customizable
  • πŸ–Ό User-friendly UI
  • βš™οΈ Add multiple accounts
  • πŸ“Š Add statistics
  • 🎲 Randomize choice
  • ⚠ Warning pop-up
  • πŸ” Protected thanks to H-captcha

πŸ“š How to add an account

⚠️ Warnings

  • This is illegal to use hacked/cracked accounts! Add only the accounts you own.
  • You MUST have the right the create team drive into your account else it won't work.
  • I am not responsible of any google restrictions into your account or the subscription (the account may be suspended by google due to abuse)

πŸ“™ Add one account

🎬 Click me to see the video tutorial


⏣ The steps bellow does not require any gsuite/workspace accounts. They can be done with your own account.

  • Go to the google cloud console and create a project
  • Then, enable the google drive api
  • Go to the OAuth Consent Screen and select "External" and click on "Create"
  • Fulfill all required informations (the one with a red *) and click on "Save and Continue" 3 times (the "Scopes" and "Test users" parts do not require any inputs)
  • Click on publish and validate (important)
  • On the Credentials tab, click on "Create Credentials" then "OAuth client ID", select "Web application"
  • Under "Authorized JavaScript origins" click on "ADD URL" and add https://developers.google.com
  • Under "Authorized redirect URIs" click on "ADD URL" and add https://developers.google.com/oauthplayground
  • Save and note down your Client ID and Secret

⏣ From now you need to be logged with your gsuite/workspace account (how can create team drives)

  • Go to the Developers Playground, click on the βš™οΈ in the upper right corner and select "Use your own OAuth credentials"
  • Copy-paste your client ID and client secret from the previous step and press the close button.
  • Scroll down the list on the left to "Drive API v3", select it, click on "https://www.googleapis.com/auth/drive" and "authorize API"
  • Select your gsuite/workspace account give permissions using your google account, then "Exchange authorization code for tokens", check "Auto-refresh the token before it expires." and note your refresh token.
  • Open/download the SharedDriveCreator.js file and put your :
    • Client ID at line 4
    • Client Secret at line 5
    • Refresh token at line 587
  • Change the number at line 12 with the number of different drives you have (this number is useful for the random choice)
  • Change the name of the choices of the dropdown list by the name of your domains or whatever you want at line 374

πŸ”’ HCaptcha

  • Go to https://dashboard.hcaptcha.com/signup and fulfill all required details
  • Copy your sitekey and paste it in line 17
  • Go to the settings of your hCaptcha account, copy and paste your secret key to line 16

βž• Add multiple accounts

If you want to add multiple accounts, it's possible!

  • After following the πŸ“™ Add one account part, log in to your new account, go the the Developers Playground, click on the βš™οΈ in the upper right corner and select "Use your own OAuth credentials"
  • Copy-paste your client ID and client secret created before and press the close button.
  • Scroll down the list on the left to "Drive API v3", select it, click on "https://www.googleapis.com/auth/drive" and "authorize API"
  • Select your gsuite/workspace account give permissions using your google account, then "Exchange authorization code for tokens", check "Auto-refresh the token before it expires." and note your refresh token.
  • Open/download the SharedDriveCreator.js file and put your :
    • Refresh token at line 587
    • Change the number at line 12 with the number of different drives you have (this number is useful for the random choice)
    • Change the name of the choices of the dropdown list by the name of your domains or whatever you want at line 375 and following

Your Client ID and Client secret won't change. Only your refresh token will be different. You can use the same client id and client secret on multiple accounts.

βš™οΈ Deploy the website


πŸ“’ Follow us:


❀️ Credits :

About


Languages

Language:JavaScript 100.0%