Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

Save one autofill entry for usernames across all sites?

  • 4 답장
  • 0 이 문제를 만남
  • 최종 답변자: 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

도움이 되셨습니까?

질문하기

글에 답글을 달기 위해서는 계정으로 로그인해야만 합니다. 계정이 아직 없다면 새로운 질문을 올려주세요.