💖 What it does
Turns the Search field in the menu bar into an autocomplete, from which you can pick a canonical tag and go straight to its works.
🪴 How to use it
- Select the search field in the menu bar. You'll see a prompt to "Start typing to search for a tag!".
- Enter the name of a tag that you're interested in. You'll get a list of suggestions of canonical tags containing that text.
- Select the tag you want. The page will refresh and you'll see the works on the tag you selected.
🎨 How to configure it
If you don't want to be redirected to the works, you can change a setting at the beginning of the code:
const GOTOWORKS = true; // go to the tag's works page (true) or lading page (false)
By default, this is true
and will send you to the works. If you change this to false
instead, you'll be sent to the tag's landing page.
If you want the tag to open in a new tab, there's also a setting at the beginning of the code:
const NEWTAB = false; // open the page in a new tab (true) or in the same tab (false)
By default, this is false
and will refresh the current tab. If you change this to true
instead, the tag will open in a new tab.
🐞 Known limitations
If you have custom CSS/site skins, the autocomplete might not look exactly like it does everywhere else on the site. Nevertheless, it tries to respect light/dark mode skins.
🏛️ History
- v3 - config option to open in the current or a new tab
- v2 - config option to choose between work and landing pages
- v1 - autocomplete for any canonical tag