Add miniflux_scripts/filter_categories.js
This commit is contained in:
parent
67101aeef2
commit
fe1c0a2d3d
21
miniflux_scripts/filter_categories.js
Normal file
21
miniflux_scripts/filter_categories.js
Normal 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();
|
||||
}
|
||||
});
|
||||
})();
|
Loading…
Reference in New Issue
Block a user