window.addEventListener('load', function() { window.removeEventListener('load', arguments.callee, false); if ('BookmarksCommand' in window) { // Firefox 2 eval('BookmarksCommand.openGroupBookmark = '+ BookmarksCommand.openGroupBookmark.toSource().replace( /(tabPanels\[index\])(\.loadURI\(uri\);)/, <> ).replace( 'browser.addTab(uri);', <> ).replace( 'if (index == index0)', <> ) ); } // Firefox 3 if ('PlacesUIUtils' in window || 'PlacesUtils' in window) { var urils = 'PlacesUIUtils' in window ? PlacesUIUtils : PlacesUtils ; eval('urils._openTabset = '+ urils._openTabset.toSource().replace( 'browserWindow.getBrowser().loadTabs(', <> ) ); } }, false);