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
| /* Tweet */ | |
| div.tweet:has( | |
| /* Disable tweets with crypto/nft tags */ | |
| a[href^="/search?q=%24"], a[href^="/hashtag/BTC"], a[href^="/hashtag/ETH"], a[href^="/hashtag/btc"], | |
| a[href="/hashtag/eth"], a[href^="/hashtag/Bitcoin"], a[href^="/hashtag/Btc"], a[href="/hashtag/Eth"], | |
| a[href^="/hashtag/Etherium"], a[href^="/hashtag/etherium"], a[href^="/hashtag/BITCOIN"], a[href^="/hashtag/ETHERIUM"], | |
| a[href^="/hashtag/Altcoins"], a[href^="/hashtag/Altcoin"], a[href^="/hashtag/altcoins"], a[href^="/hashtag/altcoin"], | |
| a[href="/hashtag/xrp"], a[href="/hashtag/XRP"], a[href="/hashtag/Xrp"], a[href^="/hashtag/Crypto"], | |
| a[href^="/hashtag/crypto"], a[href^="/hashtag/CRYPTO"], a[href^="/hashtag/nft"], a[href^="/hashtag/Nft"], | |
| a[href^="/hashtag/NFT"], |
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
| // You need to save configuration after that by for example | |
| // force saving config to cloud or by clicking save on any | |
| // plugin settings | |
| Vencord.Settings.enabledThemes = [] | |
| console.log("Disabled all local themes") | |
| const pluginsNow = Object.keys(Vencord.Plugins.plugins).map(p => p.toLowerCase()) | |
| let pc = 0 | |
| Object.keys(Vencord.Settings.plugins).forEach(p => { | |
| if(!pluginsNow.includes(p.toLowerCase())) { |
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 hexToCol = (hex) => { | |
| hex = hex.replace(/^#/, "") | |
| if (hex.length === 3) hex = hex.split("").map(c => c.repeat(2)).join("") | |
| return Array.from(hex.matchAll(/[0-9a-fA-F]{2}/g)).map(m => parseInt(m[0], 16)) | |
| } | |
| const hexToTmColor = (hex) => hexToCol(hex).map(n => Math.floor(n / 17)) | |
| const hexToTmcolorHex = (hex) => hexToTmColor(hex).map(n => n.toString(16).toUpperCase()).join("") | |
| const hex = "#FD66CC" | |
| const tmColor = hexToTmcolor(hex) |
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 { | |
| FluxDispatcher, | |
| UserStore | |
| } = Vencord.Webpack.Common | |
| const RelationshipActions = Vencord.Webpack.findByProps("addRelationship", "removeRelationship") | |
| RelationshipActions.addRelationship = ({ userId, type = 1 }) => { | |
| console.log(`+ ${userId} (${type})`) | |
| FluxDispatcher.dispatch({ |
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
| /** _changeLatency(days) to change your latency */ | |
| window._changeLatency = await (async () => { | |
| const NONCE_SHIFT = 14200704e5, | |
| SHOULD_MANIPULATE_SYMBOL = Symbol("should manipulate?"), | |
| ORIGINAL_NONCE_SYMBOL = Symbol("original nonce") | |
| const fromNonce = val => Math.floor(Number(val) / 4194304) + NONCE_SHIFT | |
| const toNonce = val => { | |
| let t = val - NONCE_SHIFT; | |
| return t <= 0 ? "0" : (BigInt(t) << 22n).toString() |
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
| import { readdirSync, readFileSync, writeFileSync } from "fs" | |
| const channelIds = (() => { | |
| const files = readdirSync("Messages", { withFileTypes: true }) | |
| .filter(x => x.isDirectory() && x.name.startsWith("c")) | |
| return files.map(x => x.name.slice(1)) | |
| })() | |
| const messages = channelIds.reduce((acc, id) => { |
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
| // Callback | |
| const foundContext = (ctx) => { | |
| console.log(ctx) | |
| } | |
| // Look for context by these keys | |
| const searchBy = [ | |
| "chat", | |
| "generateImage" | |
| ] |
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
| Element.prototype.addEventListener = new Proxy( | |
| Element.prototype.addEventListener, | |
| { | |
| apply(target, props, args) { | |
| const h = args[1]; | |
| args[1] = (ev) => | |
| h( | |
| new Proxy(ev, { | |
| get: (target, p) => p === "isTrusted" || target[p], | |
| }), |
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
| import LZString from "lz-string"; | |
| class ByteBuffer { | |
| off: number = 0; | |
| constructor(public buf: Buffer, public littleEndian: boolean) {} | |
| readShort() { | |
| const v = this.buf[this.littleEndian ? "readInt16LE" : "readInt16BE"]( | |
| this.off, |
OlderNewer