Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

Save one autofill entry for usernames across all sites?

  • 4 réponses
  • 0 a ce problème
  • Dernière réponse par 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)

Solution choisie

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}}})()

Lire cette réponse dans son contexte 👍 1

Toutes les réponses (4)

more options

Solution choisie

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}}})()

Cela vous a-t-il été utile ?

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}}})()

Cela vous a-t-il été utile ?

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}}})()

Cela vous a-t-il été utile ?

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

Cela vous a-t-il été utile ?

Poser une question

Vous devez vous identifier avec votre compte pour répondre aux messages. Veuillez poser une nouvelle question, si vous n’avez pas encore de compte.