home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Narzedzia
/
AIMP2
/
aimp_2.61.583.exe
/
$TEMP
/
YandexPackSetup.msi
/
fil144BDE31DD3C9946BD4DB8CAD67A1ED2
< prev
next >
Wrap
Text File
|
2010-07-12
|
1KB
|
36 lines
var XBCustomizeHelper = {
_appName: "yasearch",
_init: function XBCHelper__init() {
var origRestoreDefaultSet = window.restoreDefaultSet;
var me = this;
window.restoreDefaultSet = function() {
me._onRestoreDefaultSet();
return origRestoreDefaultSet.apply(window, arguments);
}
},
_onRestoreDefaultSet: function XBCHelper__onRestoreDefaultSet() {
try {
var toolbox = gToolboxDocument.getElementById("navigator-toolbox");
var items = toolbox.getElementsByTagName("toolbaritem");
for (let i = 0, len = items.length; i < len; i++) {
let item = items[i];
try {
if (item.isXBWidget && (item.application.name == this._appName))
item.kill();
}
catch(e) {}
}
}
catch (e) {}
}
}
window.addEventListener("load", function(aLoadEvent) {
aLoadEvent.currentTarget.removeEventListener("load", arguments.callee, false);
XBCustomizeHelper._init();
}, false);