FireFox for Mac will NOT save twitter login credentials
I've followed all the steps that I have found online to make FireFox for Mac to remember twitter login credentials to no avail. All other websites offer to save details. Is there something obscure with Twitter logins? Chrome does this but I need to get rid of Chrome as it is not as secure as FF
Any ideas please? I'm using Sonoma as my OS....
Kind regards
Peter
All Replies (4)
Is this about saving a login the the Password Manager (about:logins) or about a website remembering you (log you in automatically)?
The latter is about keeping a special session ID cookie.
Do you see "Manage Logins" if you right-click the username and password fields ? If that isn't the case then Firefox doesn't seem to recognize the field as part of a login form. You can possibly create a new login via the about:logins page (Password Manager).
I have read that this problem that I have has been around for a long time and is not solvable, something to do with the way Twitter codes it's login user name field.
It works with Chrome for Mac so I guess I'll retain Chrome just for my Twitter work ;-)
Many thanks for the reply ;-)
The Twitter password field autofills for me but not the initial username field. If you retain cookies you won't need to login every time.
Firefox has a problem when a username field has an autocomplete attribute with a special value like in this case autocomplete="name". In some cases there can also be a problem with a password field that isn't placed properly in the DOM.
You can fix the login form to make it work with Firefox using this JavaScript bookmarklet. You can create a new bookmark on the Bookmarks Toolbar and paste the JavaScript code in its URL field like you would normally create a bookmark. You need to click the username field to set focus to this input field and then click the bookmarklet button to invoke its JavaScript code. You should get an alert dialog that the input field is fixed, you can close this dialog. You may have to use "Use Saved Login" in the right-click context menu of the username field.
javascript:/*LOGIN:fix-username-password::2023/10/22*/(function(){ var I=1,P=['<fixed-autocomplete>','<fixed-type>','<removed-pwd>','<created-pwd>'],Z=[]; var A=document.activeElement,N=A.nodeName.toLowerCase(),E; if(N!='input'){ A=prompt('Active element:'+N+'\n\nEnter #ID of username field','#username'); if(/^#/.test(A)){ A=document.querySelector(A); N=A.nodeName.toLowerCase()} } if(N=='input'){ if(A.hasAttribute('autocomplete')&&!/(on|off)/.test(A.getAttribute('autocomplete'))){ A.removeAttribute('autocomplete'); Z.push(P[0]) } if(!/^text|email|password$/.test(A.getAttribute('type'))){ A.setAttribute('type','text'); Z.push(P[1]) } if(/^text|email$/.test(A.getAttribute('type'))){ if(E=A.parentNode.querySelector('input[hidden][type=password]')){ E.parentNode.removeChild(E);Z.push(P[2]) }else{ E=document.createElement('input'); E.hidden='true'; E.type='password'; A.parentNode.appendChild(E); Z.push(P[3]) }}} if(I){alert('active::'+N+(Z.length>0?'\n'+Z.join('\n'):': <not input>'))} })()
Modified