Skip to content

Instantly share code, notes, and snippets.

@TheRainTrain
TheRainTrain / better-forward-reply-buttons-ffs.css
Created October 4, 2024 12:35
discord's forward button position sucks. this switches the reply and forward buttons around
.hoverBarButton_e986d9[aria-label="Forward"] {
position: relative;
right: 100%;
}
.hoverBarButton_e986d9[aria-label="Edit"] {
position: relative;
left: 100%;
}
@TheRainTrain
TheRainTrain / arg-parser.js
Created February 22, 2023 19:09
Parse the ? query thing
function parseSearch(search) {
let argsRaw = search.substring(1).split("&").map(arg => arg.split("="));
const args = {};
for(const arg of argsRaw)
args[arg[0]] = arg[1];
return args;
}