LOLZ_Remove_Ignored_In_Market

Removing ignored users on the market.

  1. // ==UserScript==
  2. // @name LOLZ_Remove_Ignored_In_Market
  3. // @namespace LOLZ_Remove_Ignored_In_Market
  4. // @version 0.2
  5. // @description Removing ignored users on the market.
  6. // @author el9in lolz.market
  7. // @match https://lzt.market/*
  8. // @match https://lolz.market/*
  9. // @match https://lzt.market
  10. // @match https://lolz.market
  11. // @icon https://www.google.com/s2/favicons?sz=64&domain=zelenka.guru
  12. // @grant none
  13. // @license el9in
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18. function init() {
  19. const elements_threads = document.querySelectorAll('.marketIndexItem.itemIgnored');
  20. elements_threads.forEach(function(element) {
  21. element.remove();
  22. });
  23. }
  24.  
  25. async function ones(element) {
  26. const addedNodeClass = element.classList;
  27. if(addedNodeClass.contains("itemIgnored")) element.remove();
  28. }
  29.  
  30. const observer = new MutationObserver((mutationsList, observer) => {
  31. for (const mutation of mutationsList) {
  32. if (mutation.type === 'childList') {
  33. mutation.addedNodes.forEach(addedNode => {
  34. if (addedNode.nodeType === Node.ELEMENT_NODE) {
  35. ones(addedNode);
  36. }
  37. });
  38. }
  39. }
  40. });
  41.  
  42. const config = { childList: true, subtree: true };
  43. observer.observe(document.body, config);
  44.  
  45. init();
  46. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址