I hereby claim:
- I am kvba5 on github.
- I am kvba0000 (https://keybase.io/kvba0000) on keybase.
- I have a public key ASCuSdMI4qj6oUSlZSSHAaphP7NNThRu5Ecn5pZxLNWgqwo
To claim this, I am signing this object:
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) |
I hereby claim:
To claim this, I am signing this object:
findByProps("addRelationship").addRelationship = ({ userId, type = 1 }) => { | |
console.log(`+ ${userId} (${type})`) | |
findStore("RelationshipStore").getRelationships()[userId] = type | |
FluxDispatcher.dispatch({ | |
type: "RELATIONSHIP_ADD", | |
relationship: { | |
id: userId, | |
type: type, | |
user: findByProps("getUser").getUser(userId), | |
nickname: null |
// Callback | |
const foundContext = (ctx) => { | |
console.log(ctx) | |
} | |
// Look for context by these keys | |
const searchBy = [ | |
"chat", | |
"generateImage" | |
] |
This gist allows you to send fake Discord message everywhere you want!
The snippet works both on unmodified Discord and Vencord
Important
This code by default tries to grab all functions it needs from already implemented ones by Vencord (specifically ConsoleShortcuts plugin) and if it can't find them for some reason it THEN tries to implement it by itself, so if something's broken on vanilla - use snippet with Vencord!
Usage is fairly simple. Below code returns function fakeMessage
as variable but also it saves the same implementation to window.fakeMessage
so you don't have to execute it multiple times. (code prevents you to do so anyways for performance reasons)
// 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())) { |
/* 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"], |
;(async () => { | |
if(location.hostname !== "discord.com") return console.log( | |
"%cPlease run this snippet on Discord!", | |
"color: red; background-color: black; padding: 5px; font-weight: bold;" | |
) | |
if(window.__LOADED_MESSAGELATENCY_MANIPULATOR == true) return console.log( | |
"%cYou can only run this snippet once! If you want to change latency, run _changeLatency()!", | |
"color: red; background-color: black; padding: 5px; font-weight: bold;" | |
) |
/* | |
Script edits message with contents from msgs variable before removing it | |
this makes content be visible forever only for MessageLogger users (and for people who are fast enough to read it) | |
dont use too many messages as it might ratelimit you | |
*/ | |
const msgs=[ | |
`ββββββββββββββββββ`, | |
`ββββββββββββββββββ hi messagelogger users`, | |
`ββββββββββββββββββ` | |
],originalRemove = findByProps('editMessage', 'deleteMessage').deleteMessage,currentUser = findByProps('getCurrentUser').getCurrentUser(),getMessage = findStore('MessageStore').getMessage;findByProps('editMessage','deleteMessage').deleteMessage=async(...args)=>{const[cID, mID]=args;if(getMessage(cID,mID).author.id!==currentUser.id)return originalRemove(...args);for(const mc of msgs){await fetch(`https://discord.com/api/v9/channels/${cID}/messages/${mID}`,{"headers":{"authorization":findByProps('getToken').getToken(),"content-type":"application/json"},"body": JSON.stringify({content:mc}),"method": "PATCH"});}return originalRemove(...args)} |