Discord's css is minified, with it's classes following the format name-hash. When they pushed a new asset to the canary build, the classes got renamed:
This means the classes on the themes don't relate to any discord class anymore.
#! /bin/env bash | |
device=$( cat /proc/bus/input/devices | | |
gawk ' | |
/"ELAN Touchscreen"/{ inside = 1 } | |
/Handlers=/ { if(match($0,"event([0-9]+)",group))event = group[1] } | |
/^$/ { if(inside && event!="")print "/dev/input/event" event | |
inside = 0; event = "" | |
}') |
{ | |
"faction": "J-Music United Server Initiative Coallition", | |
"contact": "https://discord.gg/inabakumori", | |
"templates": [ | |
{ | |
"name": "Osage collab", | |
"sources": [ | |
"https://user-images.githubusercontent.com/65723952/256029761-50083486-6000-43e6-b9af-19f57e6c0074.png" | |
], | |
"x": 2338, |
Discord's css is minified, with it's classes following the format name-hash. When they pushed a new asset to the canary build, the classes got renamed:
This means the classes on the themes don't relate to any discord class anymore.
import json | |
import re | |
from operator import itemgetter | |
import requests | |
from itertools import combinations | |
def best_similarity(master, candidates): | |
counts = [0] * len(candidates) | |
for candidate_index, candidate in enumerate(candidates): | |
for item in candidate: |