George,
I'm going to post two scripts here, the first one is more secure,
however it requires Fluid to remember your username and passwords
(like Safari does) and I couldn't get Fluid to remember passwords. The
second one is less secure because you'll need to put your username and
password into the userscript but it works for now.
Colin
--
// ==UserScript==
// @name auto-login
// @namespace
http://fluidapp.com
// @description Auto-login for Backpack, requires username/password
stored by Fluid
// @include *.
backpackit.com/*
// @author Colin
// ==/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;
var flash = document.getElementById("Flash");
if(flash != undefined){ fHTML = flash.innerHTML;
if(fHTML.indexOf("invalid") > -1) return; };
if ((username.value == "") || (password.value == "")) return;
document.forms[0].submit();
}
}
})();
--
// ==UserScript==
// @name auto-login
// @namespace
http://fluidapp.com
// @description Auto-login for Backpack, username/password stored in
userscript :-/
// @include *.
backpackit.com/*
// @author Colin
// ==/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 = "yourUsername";
password.value = "yourPassword";
var flash = document.getElementById("Flash");
if(flash != undefined){ fHTML = flash.innerHTML;
if(fHTML.indexOf("invalid") > -1) return; };
document.forms[0].submit();
}
}
})();
> So if my backpack login was "colin" it would behttp://
colin.backpackit.com/login