Skip to content

Instantly share code, notes, and snippets.

View SupertigerDev's full-sized avatar
🏠
Working from home

Supertiger SupertigerDev

🏠
Working from home
View GitHub Profile
@SupertigerDev
SupertigerDev / open-youtube-save-playlist-menu.js
Last active September 12, 2024 12:19
Tampermonkey add to playlist youtube shortcut P key
// ==UserScript==
// @name YT Add to playlist shortcut
// @namespace http://tampermonkey.net/
// @version 2024-09-12
// @description Adds a shortcut to the P button to show the "add to playlist" popup
// @author SupertigerDev
// @match *://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant none
// ==/UserScript==
@SupertigerDev
SupertigerDev / open-youtube-save-playlist-menu.js
Created September 12, 2024 11:29
Open YouTube save playlist menu script
document.querySelector('yt-button-shape button[aria-label="More actions"]').dispatchEvent(new Event("click"))
setTimeout(() => {
[...document.querySelectorAll("ytd-menu-service-item-renderer")].at(-2).dispatchEvent(new Event("click"))
}, 300)
@SupertigerDev
SupertigerDev / postgress-bitwise.md
Last active October 14, 2023 10:01
Postgress bitwise

postgres bitwise add permission

Create the table

CREATE TABLE test (
	id serial PRIMARY KEY,
	perm INT NOT NULL
);
@SupertigerDev
SupertigerDev / index.js
Created February 24, 2023 22:25
discordrpcgenerator Spotify RPC work with discord.js-selfbot-v13
client.on("ready", () => {
const presence = createSpotifyRPC(client)
.setAssetsLargeImage("spotify:f2ed07272dec9cfc3b6805e9c59eac3391a59bed")
.setAssetsSmallImage("spotify:f2ed07272dec9cfc3b6805e9c59eac3391a59bed")
.setDetails("RpcGenerator - Demo")
.setState("Rpc Generator")
client.user.setPresence(presence.toDiscord())
})
@SupertigerDev
SupertigerDev / smooth-overwatch.md
Last active October 27, 2024 11:33
Make Overwatch 2 smooth: MSI mode utility, deadlock, Interrupt affinity policy tool
@SupertigerDev
SupertigerDev / latency.md
Last active September 11, 2024 14:31
Get better latency [Ryzen (intel?), WIN10 (11?)]

Cool Story

So, I always had this problem with my PC where my mouse latency felt different every time I restarted my PC. It felt like velocity was added to my mouse every time I moved it and at random values. I tried lots of different things and nothing seemed to help me. This kind of problem is also hard to troubleshoot since it's sometimes really hard to detect if it's fixed or not unless you play a game for a bit. This made me lose a lot of Overwatch games :(

When moving your mouse instantly from one side to another, you can see the delay. It should be INSTANT, but it is not.

What Didn't help

• New Mouse
• Different USB Port
• Interrupt Affinity Policy Tool
• ISLC

@SupertigerDev
SupertigerDev / bitwise.js
Created December 14, 2019 17:26
bitwise permissions example
// list of permissions
const ADMIN = 2;
const SEND_MESSAGE = 1;
// my current permission
let myPerms = 0;
console.log(containsPerm(ADMIN))
//addPerm(ADMIN)
addPerm(SEND_MESSAGE)