// ==UserScript==
// @name Wykop - ukryj wpisy
// @namespace Violentmonkey Scripts
// @match https://wykop.pl/*
// @grant none
// @version 1.0
// @description Ukrywa wpisy
// ==/UserScript==
if (
window.location.hostname === "wykop.pl" &&
window.location.pathname.startsWith("/szukaj/")
){
const tags = ["apple", "wykop"]; // wpisz nazwy tagów
const uzytkownicy = ["4nietwojinteres4", "wykop"]; // wpisz nicki użytkowników
tags.forEach(tag => {
const links = document.querySelectorAll(`a[href="/tag/${tag}"]`);
links.forEach(link => {
const article = link.closest("article");
if (article) {
article.parentElement.remove();
}
});
});
uzytkownicy.forEach(uzytkownik => {
const users = document.querySelectorAll(`a[href="/ludzie/${uzytkownik}"]`);
users.forEach(user => {
const article = user.closest("article");
if (article) {
article.parentElement.remove();
}
});
});
}