I am playing with a greasemonkey script where I want invoke a method on a website. This method will open a popup. How can I enforce that this popup will been displayed? I am doing nothing evil, I just try to call login()
on this site.
Here is my code:
if(location.href=="http://rekire.github.io/SmokePreview/auth.html") {
login(function(data) {
console.log("Wohoo", data);
}, function(data) {
console.log("Oh no!", data);
});
return;
}
I do not really want to override user settings to allow that popup if you have an idea please give me a hint.