NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Mirko Filter // @namespace mirko-filter // @version 1.7 // @description Filters untagged and placed by "zielonka" entries on Mirko! // @author spunky // @match https://www.wykop.pl/mikroblog/* // @grant none // @license MIT // @copyright 2018, spunky (https://openuserjs.org/users/spunky) // ==/UserScript== (function() { 'use strict'; function filterEntries(container) { const entries = Array.from(document.getElementsByClassName('entry')); entries.forEach(entry => { const hasTag = !!entry.querySelector('.wblock .text .showTagSummary'); const byNewbie = !!entry.querySelector('.wblock .author .color-0'); if (!hasTag || byNewbie){ container.removeChild(entry); } }); } const itemsStream = document.getElementById('itemsStream'); const config = { childList: true }; filterEntries(itemsStream); const observer = new MutationObserver(() => filterEntries(itemsStream)); observer.observe(itemsStream, config); })();