ashmedai

hide

Sep 28th, 2025
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name Wykop - ukryj wpisy
  3. // @namespace Violentmonkey Scripts
  4. // @match https://wykop.pl/*
  5. // @grant none
  6. // @version 1.0
  7. // @description Ukrywa wpisy
  8. // ==/UserScript==
  9.  
  10. if (
  11.   window.location.hostname === "wykop.pl" &&
  12.   window.location.pathname.startsWith("/szukaj/")
  13. ){
  14. const tags = ["apple", "wykop"];  // wpisz nazwy tagów
  15. const uzytkownicy = ["4nietwojinteres4", "wykop"]; // wpisz nicki użytkowników
  16. tags.forEach(tag => {
  17.   const links = document.querySelectorAll(`a[href="/tag/${tag}"]`);
  18.  
  19.   links.forEach(link => {
  20.     const article = link.closest("article");
  21.     if (article) {
  22.       article.parentElement.remove();
  23.     }
  24.   });
  25. });
  26. uzytkownicy.forEach(uzytkownik => {
  27. const users = document.querySelectorAll(`a[href="/ludzie/${uzytkownik}"]`);
  28. users.forEach(user => {
  29.     const article = user.closest("article");
  30.     if (article) {
  31.       article.parentElement.remove();
  32.     }
  33.   });
  34. });
  35.  }
Advertisement
Add Comment
Please, Sign In to add comment