Sample Header Ad - 728x90

Can't seem to auto-fill username and password in Fluid.app webapp

1 vote
0 answers
492 views
I would like to use fluidapp.com to make a webapp for me to auto-login to uptodate.com. I've used (and still use) fluidapp for my email and other websites and it saves my password so I don't have to login everytime. However for uptodate.com, it asks me for my password each time I quit and reopen the app (despite checking the remember me box). It does remember my username but it does not save my password. I tried the code for userscripts mentioned in this link but it does not seem to work. Here is the code I'm using (I used my username and password where indicated below): // ==UserScript== // @name auto-login // @namespace http://fluidapp.com // @description Auto-login for Uptodate, username/password stored in userscript :-/ // @include *.uptodate.com/* // @author // ==/UserScript== (function () { if (window.fluid) { var location = window.location.toString(); if(location.indexOf("login") > -1){ var username = document.getElementById("username"); if (username == undefined) return; var password = document.getElementById("password"); if (password == undefined) return; username.value = "myUsername"; password.value = "myPassword"; var flash = document.getElementById("Flash"); if(flash != undefined){ fHTML = flash.innerHTML; if(fHTML.indexOf("invalid") > -1) return; }; document.forms.submit(); } } })(); I hope this helps! Thanks so much for all your help!
Asked by lolitas (21 rep)
Oct 15, 2020, 02:04 PM
Last activity: Oct 16, 2020, 06:52 PM