GithubHelp home page GithubHelp logo

mack / magic-upload Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 8.0 5.96 MB

๐Ÿง™โ€ A BetterDiscord plugin to automagically upload files over 8MB.

Home Page: https://magicupload.mbd.dev

License: MIT License

Makefile 1.67% JavaScript 78.65% Shell 0.62% HTML 19.05%
betterdiscord drive file plugin upload googledrive

magic-upload's Introduction

GitHub all releases GitHub Repo stars GitHub

๐Ÿง™โ€โ™€๏ธโœจ Magic Upload

A BetterDiscord plugin to automagically upload files over 8MB. This plugin works by connecting your Google account and uploading files that exceed Discords limit to Google Drive.

Before & After Preview

More screenshots

Getting Started

  1. Download & install BetterDiscord.
  2. Copy MagicUpload.plugin.js into your BetterDiscord plugins folder.
    1. Where is my plugins folder? Click here.
  3. Enable the plugin and click on Connect Google Account from the popup.
    1. How do I enable the plugin? Go to Settings > Plugins and make sure MagicUpload is switch on.
    2. Will you have access to my Google Drive? No! Your Google Drive credentials are stored on your computer, and your computer only.
  4. ๐ŸŽ‰ Start uploading large files!

Contributing

To get started contributing, clone the repository and run:

$ make watch

You will then be able to make changes to index.js and on save the plugin will be built and installed. For changes to the HTML templates used in OAuth, see the templates README.md.

Makefile Commands

build                          Build a minified bundled version of the plugin.
install                        Copy release to BetterDiscord plugin directory.
setup                          Install tools used to build and hot reload plugin.
watch                          Automatically build and install plugin on save.

Frequently Asked Questions

How do I install a BetterDiscord plugin?

To install a BetterDiscord plugin, you'll need to have BetterDiscord installed and navigate to Settings > Plugins in Discord. From there you'll be able to click on Open Plugins Folder. Then all you have to do is add the file MagicUpload.plugin.js into your plugins folder.

Will anyone have access to my Google Drive?

Nope! When you sign in with Google, an http server is started in the background that server listens for the response from Google. Meaning that there is no middleman intercepting your OAuth tokens. They are stored locally on your computer only and as an added layer of protection, encrypted before being stored on disk.

However nothing is 100% secure, so if you feel like your tokens are ever comprimised, please remove the application from your 3rd party applications ASAP.

Special Thanks โค๏ธ

  • @dftd for providing feedback & beta testing.
  • @SirArya for providing feedback & beta testing.
  • @sterrio for providing feedback & beta testing.

magic-upload's People

Contributors

mack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

magic-upload's Issues

Fix install script for other OS's

Describe the issue

install.sh currently only supports the default plugin folder for MacOS. This script should be updated to support Windows and Linux's BetterDiscord plugin folder location.

Replugged

Port it to replugged. You can even use npm modules if they don't use node inbuilt modules. Should be fine

broken

node modules aint available as of discord update use bdbuilder to bundle the modules into the plugin itself

Could not be compiled.

After moving the file to my plugins folder, this popped up.

image

"Error: ENOENT: no such file or directory, lstat 'C:\Users\ajayp\AppData\Local\Discord\app-1.0.9016\http'
at Object.T [as realpathSync] (betterdiscord/renderer.js:4:327228)
at L.getFilePath (betterdiscord/renderer.js:4:328498)
at L._load (betterdiscord/renderer.js:4:328593)
at betterdiscord/renderer.js:4:331784
at eval (betterdiscord://plugins/MagicUpload.plugin.js:8:28)
at eval (betterdiscord://plugins/MagicUpload.plugin.js:10:244)
at M.requireAddon (betterdiscord/renderer.js:4:35818)
at M.loadAddon (betterdiscord/renderer.js:4:8323)
at M.loadAddon (betterdiscord/renderer.js:4:33490)
at AsyncFunction. (betterdiscord/renderer.js:4:6315)"

There was a error when i downloaded the plugins into the plugin folder

it could not be fired cuz
TypeError: Cannot read property 'subscribe' of undefined
at new w (betterdiscord://plugins/MagicUpload.plugin.js:9:245)
at Object.load (betterdiscord://plugins/MagicUpload.plugin.js:9:9437)
at Object.initializeAddon (:4:42101)
at Object.loadAddon (:4:8923)
at Object.loadAddon (:4:40648)
at Object.loadAllAddons (:4:11117)
at Object.initialize (:4:5811)
at Object.initialize (:4:39851)
at Object.startup (:4:374576)

fix the plugin

replace BdApi.findModuleByProps("dirtyDispatch") with BdApi.findModuleByProps("dispatch", "subscribe") and it will be fine

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.