I'm trying to make Firefox add-on that could set data to specific text or password field in any web site how could I script this add on ??
ex: I want to log in my Gmail using this add-on where I'll store my account data on it. How I could pass my username and password from my add-on to Gmail website?
I've tried to run this code
XULSchoolChrome.BrowserOverlay = {
sayHello : function(aEvent) {
let user= document.getElementById("username");
let pass= document.getElementById("passwd");
window.alert("the username is "+ user.getString);
}
};
I'm running my add-on in yahoo log-in page ...