pornhub title filter

This script filters out pornhub videos containing certain keywords.

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name     pornhub title filter
// @namespace     pornhub_title_filter
// @version  1
// @description This script filters out pornhub videos containing certain keywords.
// I got tired of 'step' titles on pornhub, but you can adapt the filter as you see fit.
// Source https://github.com/nsfw-free-software/pornhub_filter_step
// @license WTFPLv2
// @grant    none
// @match https://www.pornhub.com/*
// ==/UserScript==

re = /step|hermanastra/i;

// filters homepage
matchs = document.querySelectorAll(".thumbnailTitle");
matchs.forEach(e => {
  if(e.innerText.match(re)){
		e.parentElement.parentElement.parentElement.parentElement.parentElement.remove()
  }
});

// filters other pages, eg a category page
matchs = document.querySelectorAll(".gtm-event-thumb-click");
matchs.forEach(e => {
  if(e.innerText.match(re)){
		e.parentElement.parentElement.parentElement.parentElement.remove()
  }
});