Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aben20807/gmdl
Give me direct link of files in google drive
https://github.com/aben20807/gmdl
direct-link direct-link-generator embed-link google-drive google-drive-direct-link-generator google-extension
Last synced: about 4 hours ago
JSON representation
Give me direct link of files in google drive
- Host: GitHub
- URL: https://github.com/aben20807/gmdl
- Owner: aben20807
- License: mit
- Created: 2023-04-16T11:37:48.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-03T02:12:31.000Z (about 1 year ago)
- Last Synced: 2023-11-03T03:22:58.522Z (about 1 year ago)
- Topics: direct-link, direct-link-generator, embed-link, google-drive, google-drive-direct-link-generator, google-extension
- Language: JavaScript
- Homepage: https://aben20807.github.io/posts/20230416-give-me-direct-link-to-image-google-drive/
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GMDL: Give Me Direct Link
Get direct links to files in Google Drive by a Chrome extension (manifest v3)
Convert `{ID}` to `https://lh3.googleusercontent.com/d/{ID}` (or you can change to use `https://drive.google.com/uc?id={ID}` by yourself)
Created links may be deleted by Google Drive, you can move the pointer to regenerate (this is a hack by adding a listener to "pointermove" :stuck_out_tongue_winking_eye:)
## Screenshot
![screenshot](https://lh3.googleusercontent.com/d/1iyFzPODpFIgWUvICJVo4s_osAm1brPGF)
## Usage
Tested on Brave 1.50.119 (Chromium: 112.0.5615.121)
1. clone/download this repo; modify injected.js if you need
2. go to chrome://extensions (or brave://extensions)
3. toggle "Developer mode" on
4. click "Load unpacked" and select the folder of the repo
5. (optional) click "Details" of the extension and toggle "Allow in Private" on
6. Open your google drive, browse images, and enjoy the hack## Known issues
If it shows "404. That’s an error.", it means that the file is not shared. Please share the image(s) first
1. Need to refresh page (F5) after uploading new images
2. Only support image files (see `postfix` in `injected.js`)
3. Language should be either English or 繁體中文 (see `postfix` in `injected.js`)
4. To copy the link directly, you need to use the Shift key + right click on the generated link## Disclaimer
This project is not provided by Google (Alphabet Inc.)
## License
MIT