update for Snap Links Plus 2.1 ( http://snaplinks.mozdev.org/ )

This commit is contained in:
SHIMODA Hiroshi 2011-08-10 14:28:20 +09:00
parent 257ebd24d9
commit 1b3248172a

View File

@ -706,15 +706,25 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove
// https://addons.mozilla.org/firefox/addon/4336 // https://addons.mozilla.org/firefox/addon/4336
// Snap Links Plus // Snap Links Plus
// http://snaplinks.mozdev.org/ // http://snaplinks.mozdev.org/
if ('executeAction' in window && if (sv.getTreePref('compatibility.SnapLinks')) {
'openTabs' in window && if ('executeAction' in window &&
sv.getTreePref('compatibility.SnapLinks')) { 'openTabs' in window) {
eval('window.openTabs = '+ eval('window.openTabs = '+
window.openTabs.toSource().replace( window.openTabs.toSource().replace(
/((sContent|gBrowser|getBrowser\(\))\.addTab)/, /((sContent|gBrowser|getBrowser\(\))\.addTab)/,
'TreeStyleTabService.readyToOpenChildTab($2); $1' 'TreeStyleTabService.readyToOpenChildTab($2); $1'
) )
); );
}
if ('SnapLinks' in window &&
'OpenTabs' in SnapLinks) {
eval('SnapLinks.OpenTabs = '+
SnapLinks.OpenTabs.toSource().replace(
/((sContent|gBrowser|getBrowser\(\))\.addTab)/,
'TreeStyleTabService.readyToOpenChildTab($2); $1'
)
);
}
} }
// Mouseless Browsing // Mouseless Browsing