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!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Save one autofill entry for usernames across all sites?

  • 4 个回答
  • 0 人有此问题
  • 1 次查看
  • 最后回复者为 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)

被采纳的解决方案

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

定位到答案原位置 👍 1

所有回复 (4)

more options

选择的解决方案

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

有帮助吗?

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

有帮助吗?

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

有帮助吗?

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

有帮助吗?

我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题