Skip to content

Instantly share code, notes, and snippets.

View meowabyte's full-sized avatar
🐈

meowabyte meowabyte

🐈
View GitHub Profile
@meowabyte
meowabyte / vencord-msg-logger-edit.js
Created May 7, 2023 14:15
Vencord funny messagelogger editor
/*
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)}
@meowabyte
meowabyte / messagelatency-manipulation.js
Last active July 16, 2024 18:48
A fairly simple snippet for MessageLatency plugin manipulation for Vencord. It doesn't use any Vencord-depending variables so you can use Vanilla Discord to troll others
;(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;"
)
@meowabyte
meowabyte / NO-NFT-CRYPTO.css
Created June 8, 2024 21:07
Few CSS snippets for Old Twitter Layout for hiding certain content
/* 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"],
@meowabyte
meowabyte / cleanVencord.js
Created August 2, 2024 06:02
Simple script for cleaning Vencord out of old themes/configurations of nonexistant plugins
// 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())) {
@meowabyte
meowabyte / 0-fakeDiscordMessage.md
Last active April 5, 2025 05:00
This gist allows you to send fake Discord message everywhere you want! [INCL. VANILLA]

preview

🤫 Fake Discord Message

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

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)

@meowabyte
meowabyte / simpleMonkeyPatch.js
Created August 4, 2024 23:20
Simple monkey patch of Function.bind prototype for context searching by properties. Returns to default prototype after hit
// Callback
const foundContext = (ctx) => {
console.log(ctx)
}
// Look for context by these keys
const searchBy = [
"chat",
"generateImage"
]
@meowabyte
meowabyte / friend-anyone.js
Last active September 26, 2024 16:07
Vencord snippet that adds a super power of adding anyone to friends! (VISUAL ONLY)
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

Keybase proof

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:

@meowabyte
meowabyte / hex2tmhex.js
Created March 15, 2025 10:17
hex color to tm hex color
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)