Skip to content

Instantly share code, notes, and snippets.

@ixnoahlive
Created May 12, 2025 15:50
Show Gist options
  • Save ixnoahlive/89ad3167982d331e6b7cdd96bdf15bf4 to your computer and use it in GitHub Desktop.
Save ixnoahlive/89ad3167982d331e6b7cdd96bdf15bf4 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Filter Fast Fashion
// @namespace noahtje
// @version 2025-05-12
// @description yippie!
// @author Noah
// @match https://www.vinted.nl/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=vinted.nl
// @grant none
// ==/UserScript==
(function() {
'use strict';
/*************************************************************************************/
/*************************************************************************************
_ _____ _ _ __ _ _ ___ _____ ____ _
| |/ /_ _| | | |/ / | | | |_ _| ____| _ \| |
| ' / | |_ | | ' / | |_| || || _| | |_) | |
| . \ | | |_| | . \ | _ || || |___| _ <|_|
|_|\_\___\___/|_|\_\ |_| |_|___|_____|_| \_(_)
*/
const filterOut = [
// Om dingen toe te voegen die je wilt filteren moet je tussen ' in kleine letters het merk schrijven met daarna buiten de haakjes een komma!
// Als je problemen krijgt met dit programmatje, neem dan even contact op :]
'zara',
'h&m',
'shein',
'temu',
]
/*************************************************************************************/
/*************************************************************************************/
setInterval(() => {
const nodeList = document.querySelectorAll('.web_ui__Text__text, .web_ui__Text__caption, .web_ui__Text__left, .web_ui__Text__truncated')
const targets = Array.prototype.filter.call(nodeList, node => {
const textMatch = filterOut.some(filter => node.innerHTML.toLowerCase().includes(filter))
const isValidForRemoval = node.parentNode.classList.contains('new-item-box__description')
return textMatch && isValidForRemoval
})
targets.forEach(targetNode => {
const topLevel = targetNode.closest('.new-item-box__container').parentNode
topLevel.style.filter = 'blur(5px)'
topLevel.style.opacity = 0.25
})
}, 2000)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment