Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Gallery Filter Script, [0.3.0] Filter galleries by tag / title / uploader

 
post May 8 2024, 01:20
Post #1
프레이



Only one group, up to homomorphism
*****
Group: Gold Star Club
Posts: 701
Joined: 21-October 17
Level 500 (Ponyslayer)


userscript: [github.com] https://github.com/anon962/gallery-filter/r...rscript.user.js
source: [github.com] https://github.com/anon962/gallery-filter

Userscript for hiding galleries with certain tags / words in the title / uploaders. Similar to the My Tags page but supports regex.
Made this at someone's request but figured others might find it useful.

Example use cases:
CODE
const CONFIG = {
    tags: [
        // Hide all galleries with the "parody:..." tag except if the gallery has "parody:original"
        { hide: ["parody"], except: ["parody:original"] },

        // Hide all languages except english and chinese
        //   { hide: ['language'], except: ['language:english', 'language:chinese'] },

        // Hide all galleries with tags containing the word "big" (eg "big breasts", "big penis")
        //   { hide: ['big'] },

        // Regex is okay too
        //   { hide: ['^z.*a$', '\sman'] },
    ],
    titles: [
        // Same as above
        // { hide: ["dorei"], except: ["maid"] },
    ],
    uploaders: [
        // Same as above
        //   Use the ^ and $ operators if you want an exact match
        //   For example, write ^some_name$ instead of some_name
        //     otherwise you'll end up blocking other users with similar names (eg some_name123 and user_with_some_name)
        // { hide: ['^some_name$'] }
    ],
    categories: [
        // Same as above
        // { hide: ["western"] },
    ],
}


Feel free to comment with suggestions, complaints, whatever.

This post has been edited by 프레이: May 12 2024, 17:32
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post May 8 2024, 18:55
Post #2
Shank



Roll for Initiative
**********
Group: Global Mods
Posts: 9,278
Joined: 19-May 12
Level 500 (Ponyslayer)


Nice script, added to the index
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 - 08:39