E-Hentai Highlighter

Highlighter for E-Hentai (e-hentai.org/exhentai.org). Supports regular expressions.

作者
etc 2
日安装量
0
总安装量
2,669
评分
34 3 0
版本
0.5.11.1
创建于
2014-05-24
更新于
2018-12-26
许可证
暂无
适用于

Discontinued

Due to the new gallery changes superseding a lot of the functionalities of this script. Feel free to fork it and/or upload a new working version if you feel so inclined.

This implements one of the missing functionalities of the script (highlighting whole items/rows based on its tags).

Highlighting (the short version)

  • KEYWORD will highlight all galleries having KEYWORD in the title (regular expression supported)
  • :TAG (notice the colon) will highlight all galleries having TAG in the tag flags (regular expression supported)
  • Adding /COLOR at the end of the line will highlight the gallery using the specified color

Examples

  • english: highlights all galleries having "english" in the title using the default highlight color
  • touhou/blue: highlights all galleries having "touhou" in the title using the color blue
  • english/#00ff00: highlights all galleries having "english" in the title using the color green (hex notation)
  • \beng(lish)?\b: highlights all galleries having a title that matches the regular expression provided. \beng(lish)?\b matches (eng), [eng], {eng}, (english), [english], {english}, etc.
  • :big breasts: highlights all galleries having a tag flag containing the keyword "big breasts" using the default highlight color
  • :big breasts/red: highlights all galleries having a tag flag containing the keyword "big breasts" using the color red

Highlight (the long version)

Format used by highlighting lines:

MAIN FILTER[!TITLE EXCLUSIONS][;TAG EXCLUSIONS][/COLOR]

  • MAIN FILTER: A regular expression used to identify potential matches. A colon at the start of the MAIN FILTER indicates that the matching should be performed on gallery tag flags instead of gallery titles;
  • TITLE EXCLUSIONS: A regular expression used to exclude previously matched galleries. TITLE_EXCLUSION, as you might have guessed, is only checked against gallery titles;
  • TAG EXCLUSIONS: Similar to TITLE_EXCLUSIONS, used to exclude previously matched galleries. Yes, TAG_EXCLUSIONS are only checked against gallery tag flags;
  • COLOR: The color to highlight the gallery with if the matching is successfull.

TITLE_EXCLUSIONS and TAG_EXCLUSIONS are OR-ed together.

Examples:

english!digital/red: highlight all galleries with "english" in the title using the color red, but exclude galleries with "digital" in the title; english;anthology/blue: highlight all galleries with "english" in the title using the color blue, but exclude galleries with an "anthology" tag flag; :big breasts;crossdressing: highlight all galleries with a "big breasts" tag flag using the default color, but exclude galleries with a "crossdressing" tag flag; :big breasts!digital;anthology/green: highlight all galleries with a "big breasts" tag flag using the color green, but exclude galleries with "digital" in the title OR with an "anthology" tag flag.

Filtering

  • KEYWORD will filter all galleries having KEYWORD in the title (regular expression supported)
  • :TAG (notice the colon) will filter all galleries having TAG in the tag flags (regular expression supported)

Examples

  • sample: filters all galleries having "sample" in the title
  • sample/blue: same as above (color information is discarded as it's not meaningful for filters)
  • :netorare: filters all galleries having a tag flag containing the keyword "netorare"

Changelog

  • Version 0.5
    • Streamlined code, data is now automatically synchronized between multiple tabs/windows
    • Settings can now be changed at runtime through the popup window
    • 0.5.6: highlighted galleries are now automatically moved to the top of the search results while filtered galleries are moved to the bottom. The site's floating thumbnails are now forcefully disabled and replaced with CSS3 flexboxes. This shouldn't cause any graphical difference and shouldn't clash with any other userscripts, but you never know...
    • 0.5.7: added exclusion operators, added support for HTTPS
    • 0.5.8: added option to enable filtering of rated galleries
    • 0.5.9: added smart foreground option
    • 0.5.9.1: improved data handling, fixed "Popular Right Now" CSS bug
  • Version 0.4
    • Added support for custom coloring. Append /COLOR to a keyword to use COLOR instead of the usual red as the background for any matching gallery. Supports any css color or hex notation.
    • Tag flags matching one or more highlight keywords are now displayed below the title (thumbnail mode only; can be disabled in the options) Version 0.3
    • Added support for the Tag Flagging perk; to make a keyword work on tag flags instead of titles, prefix it with a colon. Eg: english will filter/highlight all galleries with "english" in the title; :english will filter/highlight all galleries with a tag flag containing "english". Obviously, for the latter to work:
      • You need to have Tag Flagging
      • Tag Flagging needs to be enabled
      • The tags you want to use must be flagged; the script only looks for the tag flag icon next to each gallery.
  • Version 0.2
    • Code overhaul, newlines can now be used as keyword delimiters for better readability
  • Version 0.1
    • Rewritten, added filters