E-H Better Gallery Hiding

Undoable hiding based on tags, title keywords, and uploader name.

Version vom 24.03.2019. Aktuellste Version

Autor
HEN-TIE
Bewertungen
0 0 0
Version
3.3
Erstellt am
07.10.2018
Letzte Aktualisierung
24.03.2019
Größe
5,72 KB
Lizenz
n/a
Wird angewandt auf

Works with March 2019 site update!

  • New hiding system obliterates the gallery, you can't see what tag was triggered, or undo it.
    • For this script, instead of hiding, just flag with #FF0000.
    • Of course other tags can still be set to hidden alongside this script.
  • All other script features work as they did before.

About By default this script only hides galleries flagged with #FF0000. Click button to toggle hiding and see the true, full, search results. Other features are optional.

Features

  • Hides the galleries you want to get rid of, but you won't miss out on search results
  • Temporarily Disable button
  • Displays hidden gallery count at top of page (hover on it for full details)
  • Hide ongoing galleries
    • Checks the title for "ongoing/on going"

  • Hide Pixiv artist galleries
    • Checks the title for "pixiv"

  • Hide artist portfolio galleries
    • Checks title for "Artist - " etc.

  • Hide by Uploader (superseded by on-site settings, still has some benefits)
    • Works when logged out
    • Hiding can be toggled, so you don't miss out on any search results
    • Does not work in thumbnail mode

  • Hide by Tag
    • Undoable gallery hiding
    • Obviously requires tag flagging perk
    • Only hides galleries with #FF0000 flagged tags

  • Soft-Hiding
    • Reverse of normal functionality, fades-out galleries by default, then you can toggle to hide them

Configuration Edit variables at top of script to add your blocked uploaders, and enable the optional features.

/*───────────────────┐
│   CONFIGURATION    │
├────────────────────┼──────────────────────────┬──────────────────────────────┐
│  uploader hiding   │       title hiding       │         flag hiding          │
├────────────────────┼──────────────────────────┼──────────────────────────────┤
│ edit "var blocked" │ edit "var hidePixiv"     │ flag tags with #FF0000       │
│ case insensitive   │ edit "var hideOngoing"   │ it will be hidden, but can   │
│ format:            │ edit "var hidePortfolio" │ be toggled as desired        │
│ ['user1','user2']  │ format:                  │                              │
│                    │ true/false               │                              │
└────────────────────┴──────────────────────────┴─────────────────────────────*/
var softHiding = false; //default to fading-out galleries, instead of hiding
var blocked = []; //blocked uploaders
var hidePixiv = false; //pixiv art dumps
var hideOngoing = false; //ongoing in title
var hidePortfolio = false; //other artist dumps
/*────────────────────────────────────────────────────────────────────────────*/