Studio whitelist for new scenes page

Moderators: aleksey_k, admin

mthn.private
Junior Member
 
Posts: 6
Joined: Tue Jan 15, 2019 9:38 am
Karma: 0

Studio whitelist for new scenes page

Postby mthn.private » Sat Mar 12, 2022 3:54 pm

I have been a customer for quite a while, and the store really has gone downhill.
There is just too much unprofessional low-quality content being put on here for unreasonable prices.
I would really like to see something like a "pro" tag that we can filter on on the new scenes page, because I am not interested in 90% of [spam]-like content that is bloating the store.
And I think many of the customers agree that browsing for new scenes is a chore nowadays.

Because I do not think that this will be resolved soon I started working on something myself.

The following might be a solution for others who just want to see the higher quality scenes:

Code: Select all
// ==UserScript==
// @name         Pornbox whitelist
// @namespace    https://pornbox.com/*
// @version      0.1
// @description  Hide any video that is not whitelisted
// @author       An annoyed customer
// @match        https://pornbox.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // List of approved studios.
    let studios = ["Gonzo.com",
                   "Porn World",
                   "Giorgio Grandi",
                   "Giorgio's Lab",
                   "Yummy estudio",
                   "TheWonderToys Training Studio",
                   "NRX-Studio",
                   "Interracial Vision",
                   "Anal Maniacs by Lady Dee"];
   
    // Find the mosaic item where all the blocks are loaded.
    let store = document.getElementById('pane-store');
    console.log(store);

    // Create an observer that will loop through all 'block-item' elements.
    let observer = new MutationObserver(function(list) {
        let mosaic = document.getElementById('items-mosaic');
        let blocks = mosaic.getElementsByClassName('block-item');

        for(let block of blocks) {
            // Skip the seperator and load-more blocks.
            if(!block.className.includes('block-item--separator') && !block.className.includes('block-item--load-more')) {
                let tagsContainer = block.getElementsByClassName('item-inner__tags tooltip tooltipstered')[0];

                if(tagsContainer != undefined) {
                    let studioTag = tagsContainer.getElementsByTagName('a')[0];

                    if(studioTag != undefined) {
                        let approved = false;

                        for(let studio of studios) {
                            if(studioTag.innerText == studio) {
                                approved = true;
                            }
                        }

                        // Hide the rejected element.
                        if(!approved) {
                            block.style.display = 'none';
                        }
                    }
                }
            }
        }
    });

    // Starts the mutation observer on the store element because the blocks are loaded after the initial page load.
    observer.observe(store,
      {
         characterData: false,
         childList: true,
         attributes: false,
            subtree: true,
      }
    );
})();


It's a really simple Tampermonkey script that hides all blocks that are not from any of the studios defined in the list.
Please note that this is the result of about an hour of fiddling around, there might be glitches.
The studios list is just based on what I have personally bought scenes from in the past, you might have to modify this to get the right results.
With this I now have about 4-6 new releases a day.
Feel free to modify this in any way you see fit.

User avatar
DPraved
Veteran Member
 
Posts: 1987
Joined: Fri Jun 19, 2020 10:26 pm
Karma: 0

Re: Studio whitelist for new scenes page

Postby DPraved » Sat Mar 12, 2022 4:05 pm

Very cool work!

My main issue would be that I would miss new quality studios that might show up from time to time. In your case I would advice you to include VK Studio, for your own sake, for instance. :D
Tweeting clips of my favorite porn moments at
https://twitter.com/DPraved1

mthn.private
Junior Member
 
Posts: 6
Joined: Tue Jan 15, 2019 9:38 am
Karma: 0

Re: Studio whitelist for new scenes page

Postby mthn.private » Sat Mar 12, 2022 4:23 pm

Yea, it requires some tuning... and you would miss out on potentially good studios if you don't turn it off once in a while.

That's why I would really prefer something built-in.


Return to General discussion

Who is online

Users browsing this forum: artoo_02 and 53 guests