function myExt_docLoad(){ // Load something other than "about:config". In this case, a warning page. var title = document.title; if(title.toLowerCase().indexOf("about:config") == 0){ getBrowser().loadURI("chrome://myExt/content/Restricted.html"); } window.document.removeEventListener("load",myExt_docLoad,true); return true; }
ETA: Oops ... posted this in the wrong thread! My bad ... please delete or disregard
All my signatures are stolen from other people. Including this one. Homepage
Any update with this for version 3.6.6? I am also working with a Kiosk environment where I want to ensure that users can not access the local disk to bypass our enterprise security settings.
this.value = url; gBrowser.userTypedValue = url; try { addToUrlbarHistory(url); } catch (ex) { // Things may go wrong when adding url to session history, // but don't let that interfere with the loading of the url. Cu.reportError(ex); }
mozillaZine is an independent Mozilla community and advocacy site. We're not affiliated or endorsed by the Mozilla Corporation but we love them just the same.