Highlight items without cover

This commit is contained in:
Mars Niermann 2023-03-08 10:12:27 +00:00
parent aa106319c2
commit 80aa3d0f4b

View file

@ -1,7 +1,8 @@
// ==UserScript==
// @name QuickDelete
// @description Quickly delete or refresh items in Jellyfin
// @namespace https://git.m3.fyi/Marsn3/userscripts
// @version 0.3
// @version 0.4
// @author Marsn3
// @match https://media.m3.fyi/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
@ -150,6 +151,9 @@
for (let i = 0; i < collection.length; i++) {
let curr = collection[i];
if (curr.firstChild.firstChild.classList.contains("audiotrack")) {
curr.style.backgroundColor = "rgba(251, 73, 52, 0.7)"
}
// Append buttons to list
curr.appendChild(refreshButton());