// ==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;
var storage = localStorage.getItem('hidden_users') || "[]";
return JSON.parse(storage);
}
-
+
function set_thread_visibility(visible) {
var hidden_threads = get_hidden_threads();