This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// discord developer dashboard doesnt yet allow uploading gif banners or avatars, so you need to do it via their api | |
// some gifs end up being "corrupted", as in they'll flicker black or look like they were shat out by a hellhound | |
// not sure yet why, maybe it's a filesize/dimensions kinda thing | |
const url = 'url.gif'; | |
const banner = await axios.get(url, { responseType: 'arraybuffer' }); | |
const base64 = Buffer.from(banner.data).toString('base64'); | |
const base64Image = `data:image/gif;base64,${base64}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://anilist.co/user/relevantcroissant/ */ | |
/* Fixes the site not using proper colors */ | |
* { | |
scrollbar-color: rgb(var(--color-red)) rgba(0, 0, 0, 0); | |
} | |
.hamburger svg { | |
color: rgb(var(--color-red)) !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface ApiResponse { | |
status: 'success' | 'fail' | 'error'; | |
data?: any; | |
message?: any; | |
} | |
export class jsend { | |
// https://github.com/omniti-labs/jsend | |
public static success(data: any): ApiResponse { | |
return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove old classes from eŠtudij | |
// @author Jan Plazovnik | |
// @include https://estudij.um.si/ | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
(function () { | |
'use strict'; |