pornhub title filter

This script filters out pornhub videos containing certain keywords.

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

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.

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

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

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()
  }
});