Skip to content

Instantly share code, notes, and snippets.

View JanPlazovnik's full-sized avatar
🥐

Jan Plazovnik JanPlazovnik

🥐
View GitHub Profile
@JanPlazovnik
JanPlazovnik / anilist.css
Last active July 7, 2022 21:17
Custom AnilList styling
View anilist.css
/* 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;
}
@JanPlazovnik
JanPlazovnik / jsend.ts
Created June 5, 2022 09:44
TypeScript implementation of the JSend specification
View jsend.ts
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 {
@JanPlazovnik
JanPlazovnik / estudij-course-remover.js
Last active May 26, 2022 12:26
A Tampermonkey script that removes any blacklisted courses from the page
View estudij-course-remover.js
// ==UserScript==
// @name Remove old classes from eŠtudij
// @author Jan Plazovnik
// @include https://estudij.um.si/
// @version 1
// @grant none
// ==/UserScript==
(function () {
'use strict';