From: Thorsten S. Date: Sun, 17 Dec 2023 22:36:41 +0000 (+0100) Subject: fix url X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=86cd66f78721a88098eb4539f98da82627c29d06;p=dfde%2Fhide-stuff.git fix url --- 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();