From a634f6da37415e4b7e9584d286db01f34e7d21bd Mon Sep 17 00:00:00 2001 From: snow flurry Date: Tue, 30 Apr 2024 12:11:24 -0700 Subject: [PATCH] show "unknown" followed users as unread --- following-list-tracker.user.js | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/following-list-tracker.user.js b/following-list-tracker.user.js index bba1ad2..1e45674 100644 --- a/following-list-tracker.user.js +++ b/following-list-tracker.user.js @@ -4,15 +4,23 @@ // @match https://cohost.org/rc/project/following* // @grant GM.getValue // @grant GM.setValue -// @version 1.0 +// @version 1.1 // @author snow flurry // @description Puts a dot next to users you follow with unread posts. // ==/UserScript== +// Changelog: +// 1.1: +// - Default to showing "unknown" followed users as unread. +// - If you want the previous setting, set "unreadForUnknown" +// to false in the script's Values tab. + (async () => { // Used by GM.getValue/GM.setValue const gmvalLastViewed = "lastViewed"; const notifyDotClass = "__x-notify-dot"; + // Whether to show "unknown" users as unread by default + const unreadForUnknown = GM.getValue("unreadForUnknown", true); // Stolen from the notification dot on the "refresh" button :3 const dotSvgPath = `