Skip to content

Instantly share code, notes, and snippets.

View kvba0000's full-sized avatar

kvba kvba0000

View GitHub Profile
@kvba0000
kvba0000 / keybase.md
Created November 14, 2024 15:41
meow

Keybase proof

I hereby claim:

  • I am kvba0000 on github.
  • I am kvba0000 (https://keybase.io/kvba0000) on keybase.
  • I have a public key ASDmaFdhxmyt-0WGwNzuv-xz0jxt5lQwzKEEklCU1WNDuQo

To claim this, I am signing this object:

@kvba0000
kvba0000 / inspect.min.js
Created October 19, 2024 13:52
Inspect function prepared for UserScripts/Browser code. Returns function itself
(function(){function p(t,n){var e={seen:[],stylize:A};return arguments.length>=3&&(e.depth=arguments[2]),arguments.length>=4&&(e.colors=arguments[3]),S(n)?e.showHidden=n:n&&_(e,n),u(e.showHidden)&&(e.showHidden=!1),u(e.depth)&&(e.depth=2),u(e.colors)&&(e.colors=!1),u(e.customInspect)&&(e.customInspect=!0),e.colors&&(e.stylize=H),g(e,t,e.depth)}p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function A(t,n){return t}function S(t){return typeof t=="boolean"}function u(t){return t===void 0}function H(t,n){var e=p.styles[n];return e?"\x1B["+p.colors[e][0]+"m"+t+"\x1B["+p.colors[e][1]+"m":t}function h(t){return typeof t=="function"}function w(t){return typeof t=="string"}function R(t){return typeof t=="number"}function E(t){return t===null}fun
@kvba0000
kvba0000 / 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
@kvba0000
kvba0000 / 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"
]
@kvba0000
kvba0000 / schizopreniaMode.js
Created August 3, 2024 15:48
"Did someone ping me? Meh.. That's probably nothing..."
// Vencord required
;(()=>{
;(async()=>{
const playSoundpackAudio = findAllByCode(".disableSounds", ".getSoundpack()", ".play()").find(f => f.length === 1)
while(true) {
await new Promise(r => setTimeout(r, Math.floor(30 + Math.random() * 200) * 1000))
playSoundpackAudio("message1")
}
})();
@kvba0000
kvba0000 / 0-fakeDiscordMessage.md
Last active October 22, 2024 08:14
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)

@kvba0000
kvba0000 / 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())) {
@kvba0000
kvba0000 / 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"],
@kvba0000
kvba0000 / 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;"
)
body::before {
content: " ";
position: fixed;
background-image: url("https://i.imgur.com/cEOBMVS.png");
width: 100vw;
height: 100vh;
z-index: -9999;
left: 0;
top: 0;
background-repeat: no-repeat;