Home:
/
:discord://-/
- friends:
discord://-/channels/@me/
- nitro:
discord://-/store
- shop:
discord://-/shop
- message requests:
discord://-/message-requests
- family centre:
discord://-/family-center
export const getThumbnail = (id, size = 300) => | |
`https://drive.google.com/thumbnail?id=${id}&sz=${size}`; | |
export const getIcon = (mimeType) => | |
`https://drive-thirdparty.googleusercontent.com/256/type/${mimeType}`; | |
export const getFile = (id) => `https://drive.google.com/uc?id=${id}`; | |
const downloadFile = (id) => |
## Disk Settings ## | |
dir = ${HOME}/Downloads | |
daemon = false | |
enable-mmap = true | |
disk-cache = 64M | |
file-allocation = none | |
## Download Settings ## | |
continue = true | |
split = 16 |
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]); | |
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default; | |
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes); | |
var user = UserStore.getCurrentUser(); | |
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({ | |
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [], | |
}); | |
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN(); | |
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done"; |
// 1. Open the browser developper console on the network tab | |
// 2. Start the video | |
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
// 4. Run: node vimeo-downloader.js "<URL>" | |
// (done automatically now) 5. Combine the m4v and m4a files with mkvmerge | |
const fs = require('fs'); | |
const url = require('url'); | |
const https = require('https'); | |
const { exec } = require('child_process'); |
Note: I recommend reading this gist in order because
Examples 1-6
build on each other.
- Example 1: Getting Console Input With
Console.ReadLine
How to get console input.- Example 2: Parsing The Console Input From
String
ToInt32
How to convert the console input into a numeric value.- Example 3: Validating Console Input With
Int32.TryParse
How to validate numeric input to prevent bugs in your code.- [Example 4: Looping Until User Provides Valid Input](https://gist.github.com/ZacharyPatten/798ed612