Unfuck Pornhub 2

Hide videos on Pornhub by title with regex. Currently blocks incest titles.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name        Unfuck Pornhub 2
// @namespace   none yet
// @match       *://*.pornhub.com/*
// @grant       none
// @version     2.1
// @author      Kvothe (original code), fakeanatomydoctor (regex)
// @description Hide videos on Pornhub by title with regex. Currently blocks incest titles.
// ==/UserScript==


// WORD BLOCK LIST (supports regex, can make a copy and change these terms to whatever you like)
let wordList = ["sis", "step", "bro", "mom", "mother", 
  "dad", "father", "uncle", "n[ei]{2}ce", "nephew", "aunt",
  "daughter", "son", "family"];

// DON'T EDIT BELOW
console.log('WORKING');

const searchRelatedList = document.querySelectorAll('.searchRelatedList a')
searchRelatedList.forEach(term => {
    const searchTerm = term.textContent.toLocaleLowerCase().trim();
      wordList.forEach(word => {
      if(searchTerm.match(word) && word != "") {
        term.parentElement.remove()
        console.log(`search suggestion removed => ${searchTerm} cuz it contains ==> ${word}`)
      }
    })
})

const titles = document.querySelectorAll('.videoBox .title a')
titles.forEach(title => {
    const titleContent = title.textContent.toLocaleLowerCase().trim();
    wordList.forEach(word => {
      if(titleContent.match(word) && word != "") {
        title.parentElement.parentElement.parentElement.parentElement.remove();
        console.log(`video removed => ${titleContent} cuz it contains ==> ${word}`)
      }
    })
});