Git Product home page Git Product logo

gmdl's Introduction

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" 😜)

Screenshot

screenshot

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

gmdl's People

Contributors

aben20807 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.