Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Is there any way of hiding a single gallery?

 
post May 20 2019, 21:05
Post #1
Striborg



Translator
****
Group: Gold Star Club
Posts: 439
Joined: 6-June 11
Level 337 (Godslayer)


I know I can hide uploaders, but that's not what I want to do here.
There's some galleries that get "updated" with one pic every two weeks or so, and keep popping up in results as new even though it's the same trash you wanted gone the first time.
Is there any way of hiding them, without having to resort to blacklisting the uploader or making the author an excluded tag?

Both of those options would hide other galleries that I want to keep visible, is there no way of just nuking single ones?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 21 2019, 00:41
Post #2
uareader



Critter
*********
Group: Catgirl Camarilla
Posts: 5,593
Joined: 1-September 14
Level 500 (Ponyslayer)


Probably not.
Even if you hid it through css or something, you may find yourself with a hole where the gallery was supposed to be, may be even more disturbing
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 21 2019, 01:54
Post #3
Maximum_Joe



Legendary Poster
***********
Group: Gold Star Club
Posts: 24,074
Joined: 17-April 11
Level 500 (Dovahkiin)


Yeah, closest is to use some script to hide it via CSS by detecting the title (and hoping it never changes).
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 21 2019, 17:10
Post #4
Striborg



Translator
****
Group: Gold Star Club
Posts: 439
Joined: 6-June 11
Level 337 (Godslayer)


Is there a reason the feature doesn't exist?
I know purely negative searches have been denied because of the server strain they'd cause, but would the option of hiding single galleries cause the same problem?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 21 2019, 18:03
Post #5
Maximum_Joe



Legendary Poster
***********
Group: Gold Star Club
Posts: 24,074
Joined: 17-April 11
Level 500 (Dovahkiin)


Probably too expensive on the engine to allow en masse flaggings of singular gallery chains.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 21 2019, 23:38
Post #6
Mayriad



SUPER ★ BUSY ★ TIME
*******
Group: Global Mods
Posts: 2,061
Joined: 18-December 10
Level 135 (Lord)


My userscript has a function that does this. It basically blacklists a favorite category and removes all galleries in this category from search results. It is a secure method since favorites apply to gallery chains and are not affected by updates and title changes.

The code below is again an extract from my private userscript. The constant "BLACKLISTED_FAVORITE_CATEGORY" specifies, well, the name of the blacklisted favorite category, and the default name is "Blacklist". You will need to rename one of your favorite categories to this default name via "My Home" -> "My Settings", and/or change this constant in the code. Then you just add the galleries you want to hide to this category and you will not see them again. The search result message will let you know if some galleries have been hidden by this blacklist userscript. Blacklisted galleries are still visible in the favorites page, so that you can whitelist them if needed.

I have not really used this function since I wrote it but come to think of it, it is actually pretty useful. I am sure some banana-haters would find it a necessity.

EDIT: Userscript removed. Please see updated version below.

This post has been edited by rraven314: May 23 2019, 06:56
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 22 2019, 21:51
Post #7
Striborg



Translator
****
Group: Gold Star Club
Posts: 439
Joined: 6-June 11
Level 337 (Godslayer)


QUOTE(Maximum_Joe @ May 21 2019, 18:03) *

Probably too expensive on the engine to allow en masse flaggings of singular gallery chains.

Couldn't that be solved by giving users a small amount of blacklisting slots, with them being upgradeable like favorites?
I don't think a huge amount would be needed anyway, this is just to remove those eternal low quality western galleries that get updated every single week for years.

QUOTE(rraven314 @ May 21 2019, 23:38) *

My userscript has a function that does this.

Thank you, though having to pollute my favorites page with galleries I hate isn't ideal.
A site-side solution would be great, if there is a way to make it less intensive.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 22 2019, 22:53
Post #8
Maximum_Joe



Legendary Poster
***********
Group: Gold Star Club
Posts: 24,074
Joined: 17-April 11
Level 500 (Dovahkiin)


QUOTE(Striborg @ May 22 2019, 15:51) *

Couldn't that be solved by giving users a small amount of blacklisting slots, with them being upgradeable like favorites?

You're free to ask the big guy himself.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 22 2019, 23:11
Post #9
Striborg



Translator
****
Group: Gold Star Club
Posts: 439
Joined: 6-June 11
Level 337 (Godslayer)


QUOTE(Maximum_Joe @ May 22 2019, 22:53) *

You're free to ask the big guy himself.


Is there a thread for such purposes, or should I just PM?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 22 2019, 23:12
Post #10
Maximum_Joe



Legendary Poster
***********
Group: Gold Star Club
Posts: 24,074
Joined: 17-April 11
Level 500 (Dovahkiin)


PMing is faster.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 23 2019, 00:57
Post #11
Mayriad



SUPER ★ BUSY ★ TIME
*******
Group: Global Mods
Posts: 2,061
Joined: 18-December 10
Level 135 (Lord)


QUOTE(Striborg @ May 22 2019, 21:51) *
Couldn't that be solved by giving users a small amount of blacklisting slots, with them being upgradeable like favorites?

The favorite exclusion search was removed because it was resource-intensive (and hardly used), and I think a blacklist filter would not be possible for the same reason. A second-stage blacklist filter might be easier though.

QUOTE(Striborg @ May 22 2019, 21:51) *
Thank you, though having to pollute my favorites page with galleries I hate isn't ideal.

Ok, I upgraded it a little to avoid polluting the full list of favorites, where galleries from all favorite categories are shown together. Now it will only show the blacklisted galleries when you select the blacklisted category on the favorites page. Note that if you have too many blacklisted galleries, then the full list will become a lot shorter and browsing can be less efficient.

CODE
// ==UserScript==
// @name            EH Favorite-based Gallery Blacklist
// @namespace       https://github.com/rraven314
// @description     Excludes all galleries that belong to a blacklisted favorite category from gallery lists.
// @author          rraven314
// @run-at          document-start
// @include         https://e-hentai.org/*
// @version         1.0.1
// ==/UserScript==

const BLACKLISTED_FAVORITE_CATEGORY = 'Blacklist';

let onLoad = function() {
    hideBlacklistedFavorites();
};

let hideBlacklistedFavorites = function() {
    // Excludes all galleries that belong to a blacklisted favorite category from gallery lists.
    // This function securely hides individual galleries since favorites apply to gallery chains and are not affected by
    // updates and title changes. The blacklisted category is specified by the constant BLACKLISTED_FAVORITE_CATEGORY.

    if (document.querySelector('#dms > div > select > option[selected = "selected"]') === null) {
        // Do not run this function outside gallery lists.
        return;
    } else if (window.location.href.includes('favorites')) {
        if (document.querySelector('div.fp.fps > div[title = "' + BLACKLISTED_FAVORITE_CATEGORY + '"]') !== null) {
            // Do not run this function when the blacklisted category has been selected on the favorites page for
            // browsing. This allows the blacklist to be accessed and managed without polluting the full list of
            // favorites, where galleries from all favorite categories are shown together.
            return;
        }
    }
    let blacklisted = [].slice.call(document.querySelectorAll('div[title = "' + BLACKLISTED_FAVORITE_CATEGORY +
        '"][id ^= "posted_"]'), 0);
    if (blacklisted.length > 0) {
        blacklisted.forEach(function(favorite) {
            let gallery = favorite.parentNode.parentNode;
            switch (document.querySelector('#dms > div > select > option[selected = "selected"]').innerText) {
                case 'Compact':
                case 'Thumbnail':
                    gallery = gallery.parentNode;
                    break;
                case 'Extended':
                    gallery = gallery.parentNode.parentNode;
            }
            gallery.parentNode.removeChild(gallery);
        });
        // Modify the "showing # results" message to mention how many galleries have been excluded by this function.
        document.querySelector('p.ip:first-child').innerText += '. The blacklist userscript function excluded ' +
            blacklisted.length + (blacklisted.length > 1 ? ' galleries' : ' gallery');
    }
}

if (document.readyState === 'loading') {
    window.addEventListener('DOMContentLoaded', onLoad);
} else {
    onLoad();
}


This post has been edited by rraven314: May 23 2019, 22:49
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 24 2019, 14:08
Post #12
kfahchan



Casual Poster
***
Group: Members
Posts: 165
Joined: 3-September 12
Level 230 (Destined)


Do galleries change IDs when updated? You chould just target the gallery ID and keep the list within the userscript storage instead.
(I don't see a lot of these continually updated galleries since I only usually browse doujin/manga categories. But I did blacklist keywords in title "incomplete", "sample", "updated" etc. which helps as well. Though, in my case, I never want to see updated/partial galleries so it works for me.)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 24 2019, 14:53
Post #13
Maximum_Joe



Legendary Poster
***********
Group: Gold Star Club
Posts: 24,074
Joined: 17-April 11
Level 500 (Dovahkiin)


QUOTE(kfahchan @ May 24 2019, 08:08) *

Do galleries change IDs when updated?

Yes.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 10th June 2025 - 02:49