summaryrefslogtreecommitdiff
path: root/static/userscripts/unvip.user.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/userscripts/unvip.user.js')
-rw-r--r--static/userscripts/unvip.user.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/static/userscripts/unvip.user.js b/static/userscripts/unvip.user.js
new file mode 100644
index 0000000..e5017cb
--- /dev/null
+++ b/static/userscripts/unvip.user.js
@@ -0,0 +1,18 @@
+// ==UserScript==
+// @name UnVIP
+// @author Anon
+// @namespace http://textboard.org
+// @description View the thread list in update order regardless of VIPs
+// @version 1
+// @match *://textboard.org/*
+// @grant none
+// ==/UserScript==
+(function() {
+ 'use strict';
+ const tbody = document.getElementsByTagName ("tbody") [0]
+ const rows = Array.from (tbody.children)
+ const upd = e => e.children [3].children [0].textContent
+ rows.sort ((a, b) => {var u = upd (a); var v = upd (b); return u < v ? 1 : u > v ? -1 : 0; })
+ tbody.innerHTML = ""
+ rows.forEach (e => tbody.appendChild (e))
+})();