Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [Script] gallery tagging autocomplete/suggestion

 
post Jan 12 2022, 20:56
Post #1
atasitian



Casual Poster
****
Group: Members
Posts: 422
Joined: 18-July 10
Level 322 (Godslayer)


I've written a userscript that adds autocomplete functionality to the "Enter new tags" field on galleries. I've only tested it in Firefox with Greasemonkey, but it might work in other browsers, too.

How to use:
  • Visit gallery page.
  • Type comma-separated list of tags as usual.
  • As soon as you've typed 2 or more characters of a tag, a list with tag suggestions will appear under the input field.
  • Keep adding or deleting characters to refine the search.
  • To accept one of the suggestions from the list, click on it with the left mouse button.
  • Alternatively, press the Down arrow key to activate keyboard selection, then use the Up/Down keys to select an entry and press Enter to accept it.
  • Accepting a suggestion (either by mouse click or hitting Enter) adds it to the tag input field, but does not submit it yet. You can continue adding more tags.
  • The list of suggestions will disappear automatically when focus leaves the tags input field (e.g. when you click anywhere on the page) or when the new tags are submitted (by clicking on the "Tag" button or by pressing Enter in the input field when no tag suggestion is highlighted, as normal).

It's pretty bare-bones, but seems to work well.

Code: Attached File  autocomplete_tags_e_hentai_org.user.js.txt ( 7.86k ) Number of downloads: 105


What it looks like: Attached Image Attached Image

The look and placement of the tag suggestion list is hardcoded, so if you want to change how it looks, you'll have to edit the block of CSS around line 54 in the script.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 12 2022, 23:59
Post #2
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,045
Joined: 24-March 12
Level 500 (Godslayer)


Into the index it goes.

Another interaction base on ehg_mytags.c.js - it looks nice though.
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: 29th April 2024 - 23:18