From 86cd66f78721a88098eb4539f98da82627c29d06 Mon Sep 17 00:00:00 2001 From: "Thorsten S." Date: Sun, 17 Dec 2023 23:36:41 +0100 Subject: [PATCH] fix url --- hide-stuff.user.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hide-stuff.user.js b/hide-stuff.user.js index 5ec9f60..3917280 100755 --- a/hide-stuff.user.js +++ b/hide-stuff.user.js @@ -1,16 +1,20 @@ // ==UserScript== // @name debianforum.de-hide-stuff +// @description Hide threads (TODO: and users) entirely, stored in localStorage // @namespace org.free.for.all -// @include /^https?://debianforum\.de/.*/ +// @match https://debianforum.de/* // @author Thorsten Sperber // @version 0.3 +// @downloadURL https://git.aero2k.de/?p=dfde/hide-stuff.git;a=blob_plain;f=hide-stuff.user.js +// @updateURL https://git.aero2k.de/?p=dfde/hide-stuff.git;a=blob_plain;f=hide-stuff.user.js // ==/UserScript== /** TODO: provide a reasonably good UI to hide stuff, maybe like xkill. + TODO: code cleanup a lot. */ -(function() { + (function() { 'use strict'; const opacity_default = 0.4; @@ -25,7 +29,7 @@ var storage = localStorage.getItem('hidden_users') || "[]"; return JSON.parse(storage); } - + function set_thread_visibility(visible) { var hidden_threads = get_hidden_threads(); -- 2.39.2