Topic: [Feature Request] Change the "middle-click" link on autocomplete menu items to the tag's wikipage

Posted under Site Bug Reports & Feature Requests

Requested feature overview description.
(left-clicking on a autocomplete menu item adds the selected tag to the search/taglist, I do not want this to be changed.)

if you mouse over any of the items that pop up in the autocomplete menu you'll see that the associated URL is "/post?tags=<tag>" when middle-clicking (or right-clicking and open link or whatever) this link will open. I think it might be more useful if this link was instead changed to be "/wiki_pages/show_or_new?title=<tag>".

Why would it be useful?
this is kind of a niche feature that I can't imagine gets used that often, but for me at least, the only time I've ever used it was when I was curious about a tag that I'd never seen used before or when I'm tagging and see a tag that I've never added to a post. generally in situations like this a link to a wikipage contains more helpful and concise information than a full search page.

it'd also be nice to have a quick way to get to a wiki page for a tag that's not shown in the side-bar

What part(s) of the site page(s) are affected?
tag searches, editing post tags, tagging to new posts

This. I mainly use it when I'm about to apply a tag that I'm not entirely sure I've got the correct meaning of.

I'm not sure of any circumstances in which the search link would be useful. If you want to search for a tag, surely you would be typing in the search field, in which case the non-middle-click functionality does the same thing with more options.

Honestly, this would be handy. It's what I use those autocomplete/suggestion links for anyways (so: right click on the popup suggested tag to open it into a new tab, then cuss when it opens a search page for it, then go over to the tag list on the side to hit the ? next to the needed tag in order to get to the wiki page for that tag instead...then check whatever I needed to see there) So having that tag suggestion link go to the wiki page for the tag instead of a search page for that tag... that would be more efficient and handy. Because in those situations, I usually click to use that link only when I want to know more details about it (is it the tag I think it is? does it cover what I'm about to use it for? is it implicated with anything?). So the wiki is where I'm headed if I'm following that link.

And when I want to have an actual search page for a tag, then I tend to use the search bar for that more directly. Or to click on the tag in a regular list, etc. Both get me to the search page for that tag without any extra effort.

So +1 from me for this suggestion.

bitwolfy said:
Funny thing about this. I actually implemented it last year.
https://github.com/zwagoth/e621ng/pull/332

It was pretty much rejected outright, though.

That's because you did it in a really weird way, some sort of Frankenstein Javascript that would open the wiki sometimes but not all the time. As (I presume zwagoth is) Kira told you, there's no reason not to just change the link target.

I wonder what the 99,99% of user, who are not in the forum, think about that idea. If they use it at all, unlike the users who care about tagging/uploading/managing stuff.

dubsthefox said:
I wonder what the 99,99% of user, who are not in the forum, think about that idea. If they use it at all, unlike the users who care about tagging/uploading/managing stuff.

honestly, this feature is only useful to those who tag, so it'll have nearly no effect on the userbase who browse.

dubsthefox said:
I wonder what the 99,99% of user, who are not in the forum, think about that idea. If they use it at all, unlike the users who care about tagging/uploading/managing stuff.

I'd be surprised if 99.99% of users even knew this was a thing you could do. and in the few cases a user would prefer to go to the posts page it's only one click away.

I wrote a quick userscript that makes it work. You can use it until the feature is officially implemented.

// ==UserScript==
// @name         e621 autocomplete tag links wiki page
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  try to take over the world!
// @author       e6 user
// @match        https://e621.net/*
// @grant        none
// ==/UserScript==

(function() {
    const _get_href = window.Danbooru.Autocomplete.get_href;
    window.Danbooru.Autocomplete.get_href = function(t) {
        switch (t.type) {
            case "tag":
                if(t.category === 1){
                    return "/artists/" + encodeURIComponent(t.value);
                }
                else{
                    return "/wiki_pages/" + encodeURIComponent(t.value);
                }
            default:
                return _get_href(t);
        }
    };
})();

I would hate it. I open lots of tag searches in new tabs with the current implementation. Having a shortcut to the wikipage would be nice, but it should be a hotkey or something else.

furrypickle said:
Honestly, this would be handy. It's what I use those autocomplete/suggestion links for anyways (so: right click on the popup suggested tag to open it into a new tab, then cuss when it opens a search page for it, then go over to the tag list on the side to hit the ? next to the needed tag in order to get to the wiki page for that tag instead...then check whatever I needed to see there) So having that tag suggestion link go to the wiki page for the tag instead of a search page for that tag... that would be more efficient and handy. Because in those situations, I usually click to use that link only when I want to know more details about it (is it the tag I think it is? does it cover what I'm about to use it for? is it implicated with anything?). So the wiki is where I'm headed if I'm following that link.

And when I want to have an actual search page for a tag, then I tend to use the search bar for that more directly. Or to click on the tag in a regular list, etc. Both get me to the search page for that tag without any extra effort.

So +1 from me for this suggestion.

LOL so this! A ? mark next to the suggestion would do same thing but seems that has other issues? I do this basically every single time I need to check a tag definition on a suggestion, and the Wiki has examples on bottom, anyways, so the search for posts to see is superfluous.

So, a userscript will do this, right?

  • 1