Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Learn More

Save one autofill entry for usernames across all sites?

  • 4 respostas
  • 0 têm este problema
  • 1 visualização
  • Última resposta por ballakoala

more options

I have a unique annoyance wherein I use a considerably long email address for many sites. I've gotten tired of typing it out whenever it comes up and wish for it to be preserved as an autofill across all sites so I no longer have to, similar to how your phone may suggest your email address in autocomplete.

Unfortunately, as far as I can tell, you can only manually add autofills for specific sites and with password attached. So my question is, is there a way to make the address be a suggested autofill on username/email address boxes across all sites?

(not interested in having form history saved, just want this one specific form entry)

I have a unique annoyance wherein I use a considerably long email address for many sites. I've gotten tired of typing it out whenever it comes up and wish for it to be preserved as an autofill across all sites so I no longer have to, similar to how your phone may suggest your email address in autocomplete. Unfortunately, as far as I can tell, you can only manually add autofills for specific sites and with password attached. So my question is, is there a way to make the address be a suggested autofill on username/email address boxes across all sites? (not interested in having form history saved, just want this one specific form entry)

Solução escolhida

You can search the Add-ons website for a suitable form fill extension.

You can possibly use a bookmarklet to fill this email address in the currently selected input field. You can create a new bookmark and paste the JavaScript code in its URL field where you would normally enter the address of the website, you need to modify the U variable to your email address. Click in the username field to set focus to this field and click the bookmarklet to fill the U variable.

javascript:/*LOGIN:fill-username*/(function(){var A=document.activeElement,U='email@site.com'; if((A.nodeName.toLowerCase()=='input')&&(A.getAttribute('type')=='text')){if((U=prompt('username',U))!=null){A.value=U}}})()

Ler esta resposta no contexto 👍 1

Todas as respostas (4)

more options

Solução escolhida

You can search the Add-ons website for a suitable form fill extension.

You can possibly use a bookmarklet to fill this email address in the currently selected input field. You can create a new bookmark and paste the JavaScript code in its URL field where you would normally enter the address of the website, you need to modify the U variable to your email address. Click in the username field to set focus to this field and click the bookmarklet to fill the U variable.

javascript:/*LOGIN:fill-username*/(function(){var A=document.activeElement,U='email@site.com'; if((A.nodeName.toLowerCase()=='input')&&(A.getAttribute('type')=='text')){if((U=prompt('username',U))!=null){A.value=U}}})()

Útil?

more options

cor-el said

You can search the Add-ons website for a suitable form fill extension. You can possibly use a bookmarklet to fill this email address in the currently selected input field. You can create a new bookmark and paste the JavaScript code in its URL field where you would normally enter the address of the website, you need to modify the U variable to your email address. Click in the username field to set focus to this field and click the bookmarklet to fill the U variable.
javascript:/*LOGIN:fill-username*/(function(){var A=document.activeElement,U='email@site.com'; if((A.nodeName.toLowerCase()=='input')&&(A.getAttribute('type')=='text')){if((U=prompt('username',U))!=null){A.value=U}}})()

I like the javascript idea, had to make a small edit so it would work for email type fields too and should now cover my issue, thanks for the idea and code!!

edited version for email type too: javascript:/*LOGIN:fill-username*/(function(){var A=document.activeElement,U='emailaddress@site.com'; if((A.nodeName.toLowerCase()=='input')&&(A.getAttribute('type')=='text')||(A.getAttribute('type')=='email')){if((U=prompt('username',U))!=null){A.value=U}}})()

Útil?

more options

You can possibly use a regular expression to make it easier to add other types or if you want to adapt it to username fields with an autocomplete attribute that Firefox doesn't handle properly.

javascript:/*LOGIN:fill-username*/(function(){var A=document.activeElement,U='email@site.com'; if((A.nodeName.toLowerCase()=='input')&&/^(text|email)$/.test(A.getAttribute('type'))){if((U=prompt('username',U))!=null){A.value=U}}})()

Útil?

more options

cor-el said

You can possibly use a regular expression to make it easier to add other types or if you want to adapt it to username fields with an autocomplete attribute that Firefox doesn't handle properly.
javascript:/*LOGIN:fill-username*/(function(){var A=document.activeElement,U='email@site.com'; if((A.nodeName.toLowerCase()=='input')&&/^(text|email)$/.test(A.getAttribute('type'))){if((U=prompt('username',U))!=null){A.value=U}}})()

Oh ty this will make it way easier to update if I run into any oddly typed fields! Had to frankenstein what I added from your code cause I'm not too familiar with java so adding more wouldve been annoying lol

Útil?

Colocar questão

Deve iniciar a sessão com a sua conta para responder às mensagens. Por favor, comece uma nova pergunta, se ainda não tiver uma conta.