Welcome, fellow code explorer! π
Ever tried to share a Google Drive file and ended up with a link longer than your last Netflix binge? Or maybe you just want a direct download linkβno more βRequest Accessβ drama, no more clicking through Googleβs labyrinthine UI. Well, youβre in luck! This project is here to save your day (and your sanity).
A super-slick, beginner-friendly web app that:
- Converts your Google Drive share links into direct download links
- Generates a QR code for your link (because typing URLs is so 2010)
- Looks great on your phone, tablet, or desktop (responsive design FTW!)
- Is so easy, even your grandma could use it (but please, teach her about internet safety first)
- IT students learning web basics
- Anyone who wants to share files from Google Drive without the hassle
- People who love QR codes (we see you, techies)
- You, if you like fun, simple, and effective tools!
- Clone or download this repo (or just open the
index.htmlfile in your browserβno server needed!) - Paste your Google Drive share link into the input box.
- Click the big, shiny βGenerate Direct Linkβ button.
- Copy your new direct download link, or scan/download the QR code.
- Share it with your friends, your boss, or your pet goldfish. (We donβt judge.)
- Direct Link Magic: Turns those clunky Google links into instant downloads.
- QR Code Wizardry: Instantly get a QR code for your linkβgreat for posters, slides, or impressing your classmates.
- Copy & Test: Copy the link with one click, or test it in a new tab.
- Mobile-First: Works beautifully on phones, tablets, and desktops. Try resizing your browser. Go on, we dare you!
- Toasts: Get friendly notifications for your actions. (No, not the breakfast kind.)
- It extracts the file ID from your Google Drive link using a sprinkle of JavaScript regex magic.
- It builds a direct download URL for you.
- It uses the legendary QRCode.js library to make QR codes.
- All in your browser. No data leaves your computer. (Your secrets are safe!)
Share Link: https://drive.google.com/file/d/1A2B3C4D5E6F7G8H9I0J1K2L3M4N5O6P7/view?usp=sharing
Direct Link: https://drive.usercontent.google.com/download?id=1A2B3C4D5E6F7G8H9I0J1K2L3M4N5O6P7&export=download&confirm=t
- Want to know how the regex works? Check out the
extractFileIdfunction in the code! - Want to style it your way? Tweak the Tailwind CSS classes or add your own flair.
- Want to break it? (Please donβt, but if you do, youβll learn a lot!)
- QR code not showing? Make sure youβre online (the app loads QRCode.js from a CDN).
- Link not working? Double-check your Google Drive permissions. If itβs private, only you can download it!
- Still stuck? Ask your favorite teacher, or open an issue on GitHub.
WTFPL β Do What The F*ck You Want To Public License. Seriously, do whatever you want with this code. Copy it, remix it, sell it, print it out and make paper airplanesβjust have fun!
Full license in the LICENSE file.
Happy sharing, and may your links be ever direct! π₯³