Greasy Fork is available in English.
Removing ignored users on the market.
// ==UserScript==
// @name LOLZ_Remove_Ignored_In_Market
// @namespace LOLZ_Remove_Ignored_In_Market
// @version 0.2
// @description Removing ignored users on the market.
// @author el9in lolz.market
// @match https://lzt.market/*
// @match https://lolz.market/*
// @match https://lzt.market
// @match https://lolz.market
// @icon https://www.google.com/s2/favicons?sz=64&domain=zelenka.guru
// @grant none
// @license el9in
// ==/UserScript==
(function() {
'use strict';
function init() {
const elements_threads = document.querySelectorAll('.marketIndexItem.itemIgnored');
elements_threads.forEach(function(element) {
element.remove();
});
}
async function ones(element) {
const addedNodeClass = element.classList;
if(addedNodeClass.contains("itemIgnored")) element.remove();
}
const observer = new MutationObserver((mutationsList, observer) => {
for (const mutation of mutationsList) {
if (mutation.type === 'childList') {
mutation.addedNodes.forEach(addedNode => {
if (addedNode.nodeType === Node.ELEMENT_NODE) {
ones(addedNode);
}
});
}
}
});
const config = { childList: true, subtree: true };
observer.observe(document.body, config);
init();
})();