Maybe I am overlooking a setting or something silly but one thing has always really bothered me about the tag input field on release pages. It has an amazing autocomplete built-in but my browser (Firefox) starts suggesting already inputted data right as I start typing, blocking the MusicBrainz suggestions from view. I made a simple one-liner userscript and figured I’d share it in case anyone else is having the same issue:
// ==UserScript==
// @name Stop browser auto-fill in MusicBrainz tag box
// @version 0.1
// @description One-liner to stop the browser auto-fill in the MusicBrainz tag box.
// @author RetroPunk
// @include http*://*musicbrainz.org/release*
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
document.getElementById('tag-form').children[0].getElementsByTagName('input')[0].setAttribute('autocomplete', 'off');
})();
I know it’s so simple but after just ignoring the issue for years I finally did this in 2 minutes and I feel so much less frustration on the edit pages now.
I use Chrome, and I have a similar problem: the address auto-complete feature constantly wants to put in my home address in any Area fields when I edit an entity. I wish there was some way to blacklist that feature by domain or somesuch…
For some reason this script doesn’t seem to work reliably on Firefox (85.0) when used with Violentmonkey (2.12.9.2).
Tried disabling all extensions and scripts besides those two. But even then it only worked after restarting Firefox.
Simply reloading the page led to it non-working. Didn’t notice any hints in console either.
This is something I’ve been meaning to do for a while! @RetroPunk, would you be OK if I added a userscript based on this to my GitHub repo? I’ll credit you as the author.
As per @jesus2099’s comment some additional code will be needed to check for the availability of the tag-input element before setting the autocomplete attribute.
Exactly my thought, in most cases I would rather like to have a userscript that stops the MB genre suggestions when I am using the browser’s autocomplete suggestions for my personal tags
I don’t think you’ll ever get a consensus on this to be honest. It seems like some people want the browser autocomplete and not the server autocomplete, whereas I’m the opposite. So a userscript is probably the best way to go.