eXo-Necro / Hide Videos by Title Keyword

Published:

Version: 1.0+1bc10b4

Summary: Masque les vignettes de vidéos dont le titre contient un mot-clé de ta liste

License: GPL-3.0-or-later; https://www.gnu.org/licenses/gpl-3.0.txt

License: CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode

Antifeature: unspecified

This is a Tampermonkey/Greasemonkey userscript for noodlemagazine.com that lets you hide video thumbnails based on title keywords. Here's what it does:

Menu commands (added to the userscript manager's menu):

  • Add keyword – prompts for a keyword, lowercases/trims it, and saves it to a stored list (persisted via GM_setValue) if not already present
  • Remove keyword – shows the current list and prompts for one to delete
  • 📋 List keywords – shows all currently stored keywords in an alert

Filtering logic:

  • Reads the stored keyword list from GM_getValue
  • Scans video items (.list_videos .item) on the page, extracting each one's title from the thumbnail image's alt attribute
  • If a title contains any stored keyword (case-insensitive substring match), it sets that item's display: none, hiding it from view
  • Marks items as "checked" (data-kw-checked) so it doesn't re-scan the same ones repeatedly on every DOM mutation, a performance optimization

Dynamic content handling:

  • Uses a MutationObserver on the video list container to catch content loaded via infinite scroll/AJAX and re-run the filter on new items as they appear
  • When you add or remove a keyword, it fully resets all "checked"/"hidden" markers and re-scans everything from scratch, so the new rule applies retroactively to already-loaded items

In short: it's a personal content filter, you give it a list of words, and it hides any video whose title matches one of them, keeping the list working as you scroll or as the site loads more content.

Rating: 0