D
Deleted member 6583
Very spiritual
- Joined
- Apr 24, 2020
- Posts
- 1,645
- Reputation
- 5,749
So for the longest time, I was getting annoyed when watching porn because cuck shit would pop up. At first, I made a Pornhub account, hoping that I could possibly hide videos with certain tags or keywords. Unfortunately, that was not the case. And so I tried googling to see if there was a porn site that had that option or a Google extension that could. But apparently, no such thing exists.
So I asked Chat GPT 4 to find me a method, and 15 minutes later I had a working method that completely removed videos that had certain keywords.
You will need to download the Chrome extension Tampermonkey and set up a new script for each porn site. Currently, I've made two scripts, one for Pornhub and one for XVideos.
Now with that being said, I'm very happy to be able to finally watch porn without seeing cuck shit and various other forms of degeneracy.
So I asked Chat GPT 4 to find me a method, and 15 minutes later I had a working method that completely removed videos that had certain keywords.
You will need to download the Chrome extension Tampermonkey and set up a new script for each porn site. Currently, I've made two scripts, one for Pornhub and one for XVideos.
Steps for Installation and Usage
Part 1: Installing Tampermonkey
- Google Chrome Users:
- Go to the Chrome Web Store and search for "Tampermonkey", or visit this link.
- Firefox Users:
- Go to Firefox Add-ons and search for "Tampermonkey", or visit this link.
- Other Browsers:
- Tampermonkey is also available for Safari, Microsoft Edge, and other browsers. Check your browser's extension store.
- Click "Add to Chrome" or "Add to Firefox", and follow the on-screen instructions to install.
Part 2: Adding the Script to Tampermonkey
- Click on the Tampermonkey icon in the top-right corner of your browser.
- Select "Create a new script..."
- Delete any template or pre-filled content.
- Copy and paste the relevant script from below:
For Xvideos
// ==UserScript==
// @Name Hide Specific Videos on Xvideos
// @namespace http://tampermonkey.net/
// @version 0.1
// @description hide specific videos based on keywords
// @Author You
// @match https://www.xvideos.com/*
// @Grant none
// ==/UserScript==
(function() {
'use strict';
let blacklist = ['keyword1', 'keyword2']; // Add your keywords here
window.addEventListener('load', function() {
document.querySelectorAll('.title').forEach(function(titleElement) { // The '.title' is based on your HTML structure for the title text
let titleText = titleElement.innerText || titleElement.textContent;
blacklist.forEach(function(keyword) {
if (titleText.toLowerCase().includes(keyword.toLowerCase())) {
let parentElement = titleElement.closest('.thumb-block'); // The '.thumb-block' is based on your HTML structure that encloses each video
if (parentElement) {
parentElement.style.display = 'none';
}
}
});
});
});
})();
For Pornhub
// ==UserScript==
// @Name Hide Specific Videos
// @namespace http://tampermonkey.net/
// @version 0.1
// @description hide specific videos based on keywords
// @Author You
// @match https://www.pornhub.com/*
// @Grant none
// ==/UserScript==
(function() {
'use strict';
let blacklist = ['keyword1', 'keyword2']; // replace 'keyword1', 'keyword2' with your actual keywords, separated by commas
window.addEventListener('load', function() {
document.querySelectorAll('.title').forEach(function(titleElement) {
let titleText = titleElement.innerText || titleElement.textContent;
blacklist.forEach(function(keyword) {
if (titleText.toLowerCase().includes(keyword.toLowerCase())) {
let parentElement = titleElement.closest('.pcVideoListItem'); // Use '.pcVideoListItem' or '.videoBox', based on what encloses the whole video
if (parentElement) {
parentElement.style.display = 'none';
}
}
});
});
});
})();
5. Save the script by clicking the floppy disk icon or pressing Ctrl + S.
Part 3: Customizing Keywords
- To add your own keywords, replace 'keyword1', 'keyword2' in the blacklist line with the words you want to block, separated by commas.
- Save your changes.
Now with that being said, I'm very happy to be able to finally watch porn without seeing cuck shit and various other forms of degeneracy.
Last edited: