This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const axios = require('axios'); // `npm i axios` or `yarn add axios` | |
| const fs = require('fs'); | |
| const apiKey = '(API KEY HERE)'; | |
| const channelId = '(CHANNEL ID HERE)'; | |
| async function getParams(extra) { | |
| return (await axios.get(`https://youtube.googleapis.com/youtube/v3/search?part=snippet&channelId=${channelId}&maxResults=50&order=date&safeSearch=none&type=video&key=${apiKey}${extra}`)).data; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Base code: https://gist.github.com/aamiaa/7cdd590e3949cd654758bc90bcb4710b | |
| let wpRequire = webpackChunkdiscord_developers.push([[Symbol()], {}, r => r]); | |
| webpackChunkdiscord_developers.pop(); | |
| let ApexStore = Object.values(wpRequire.c).find(x => x?.exports?.A?.createOverride).exports.A; | |
| let UserStore = Object.values(wpRequire.c).find(x => x?.exports?.A?.__proto__?.getCurrentUser).exports.A; | |
| let FluxDispatcher = Object.values(wpRequire.c).find(x => x?.exports?.A?.__proto__?.flushWaitQueue).exports.A; | |
| let api = Object.values(wpRequire.c).find(x => x?.exports?.Bo?.get).exports.Bo; | |
| let globalCopy = navigator.userAgent.includes("Firefox") ? navigator.clipboard.writeText.bind(navigator.clipboard) : copy |