Erases all of your messages in a DM conversation.
- Open Chrome Dev Tools > Network.
- Go to https://discordapp.com.
- Find some request with the
Authorization
request header. - Place the header's value in the
Authorization
variable ineraser.js
.
Erases all of your messages in a DM conversation.
Authorization
request header.Authorization
variable in eraser.js
./* | |
Calculates the total duration of a YouTube playlist. | |
Run the snippet in Chrome Dev Tools while on the playlist's page, | |
e.g. https://www.youtube.com/playlist?list=WL | |
Ensure that the playlist is fully visible first. | |
Long playlists are loaded 100 videos at a time. | |
*/ |
#!/bin/sh | |
set -e | |
# Sets your wallpaper to a random photo from <https://picsum.photos>. | |
# Run regularly (e.g. automatically on login) to keep your desktop fresh. | |
cache="${XDG_CACHE_HOME:-$HOME/.cache}/picsum-wallpapers" | |
mkdir -p "$cache" | |
new="$cache/new.jpg" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
set -e | |
if [ -z "$1" ]; then | |
echo "Usage: $0 FILE.unitypackage" >&2 | |
exit 1 | |
fi | |
tmp=$(mktemp -d) | |
tar -C "$tmp" -x -f "$1" |
import ctypes | |
import time | |
user32 = ctypes.windll.user32 | |
# https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-mouse_event | |
MOUSEEVENTF_MOVE = 0x0001 | |
MOUSEEVENTF_LEFTDOWN = 0x0002 | |
MOUSEEVENTF_LEFTUP = 0x0004 |