??? function blocked silently

Ask for help about NoScript, no registration needed to post
User avatar
江3如此多娇
Junior Member
Posts: 35
Joined: Mon Mar 25, 2013 2:38 am

??? function blocked silently

Post by 江3如此多娇 »

// ==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? ;)
Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3377
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: ??? function blocked silently

Post by GµårÐïåñ »

This isn't necessarily a NS blocking situation, you need to make sure that you are allowing scripts through the URL bar in the about:config otherwise it won't work.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.2.2.0 Safari/537.31
User avatar
江3如此多娇
Junior Member
Posts: 35
Joined: Mon Mar 25, 2013 2:38 am

Re: ??? function blocked silently

Post by 江3如此多娇 »

GµårÐïåñ wrote:This isn't necessarily a NS blocking situation, you need to make sure that you are allowing scripts through the URL bar in the about:config otherwise it won't work.
after turn off NS,the script works normally, so I still think it is NS that block the script
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1485.0 Safari/537.36
Post Reply