??? function blocked silently
Posted: Mon Apr 29, 2013 9:56 am
// ==UserScript==
// @name url bar blur to revert
// @namespace blur2revert@zbinlin.gmail.com
// @filename blur2revert.uc.js
// @description url bar blur to revert (当地址栏失去焦点后,恢复原来的地址。)
// @author zbinlin
// @version 0.1.20110602.1
// @updateURL https://j.mozest.com/ucscript/script/39.meta.js
// ==/UserScript==
if (location == "chrome://browser/content/browser.xul") {
var ub = document.getElementById("urlbar");
ub.addEventListener("blur", function () {
this.handleRevert();
}, false);
}
============================
the above is a .uc.js file code used by this addon, which aims to restore the original URL in the addressbar automatically after lost the focus of addressbar.
the problem is NS block the action of the addressbar in new tab silently, in ohter words, I can not open an URL in blank tab through the URLbar.
I chacked all the possible patential opinion of NS, but failed to make it.
What`s the reason of that and Can I get a work-around?
// @name url bar blur to revert
// @namespace blur2revert@zbinlin.gmail.com
// @filename blur2revert.uc.js
// @description url bar blur to revert (当地址栏失去焦点后,恢复原来的地址。)
// @author zbinlin
// @version 0.1.20110602.1
// @updateURL https://j.mozest.com/ucscript/script/39.meta.js
// ==/UserScript==
if (location == "chrome://browser/content/browser.xul") {
var ub = document.getElementById("urlbar");
ub.addEventListener("blur", function () {
this.handleRevert();
}, false);
}
============================
the above is a .uc.js file code used by this addon, which aims to restore the original URL in the addressbar automatically after lost the focus of addressbar.
the problem is NS block the action of the addressbar in new tab silently, in ohter words, I can not open an URL in blank tab through the URLbar.
I chacked all the possible patential opinion of NS, but failed to make it.
What`s the reason of that and Can I get a work-around?