Add miniflux_scripts/filter_categories.js

This commit is contained in:
SansGuidon 2024-08-20 13:57:15 +00:00
parent 67101aeef2
commit fe1c0a2d3d

View File

@ -0,0 +1,21 @@
// ==UserScript==
// @name miniflux filter categories
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author SansGuidon
// @match https://YOUR_MINIFLUX_DOMAIN/categories
// @icon https://www.google.com/s2/favicons?sz=64&domain=miniflux.app
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.querySelectorAll('article.item').forEach(function(e) {
var total = e.querySelector('span[class="category-item-total"]').innerText == '(0)';
if (total) {
e.remove();
}
});
})();