Open tabs as children, from the "search by" in the context menu. (#655)

It worked in old versions, but killed by changes of Firefox itself.
This commit is contained in:
Piro / YUKI Hiroshi 2014-02-08 17:56:43 +09:00
parent c68d85c617
commit 2f51f15265

View File

@ -159,14 +159,23 @@ var TreeStyleTabWindowHelper = {
)
);
if ('BrowserSearch' in window &&
'loadSearch' in BrowserSearch) {
eval('BrowserSearch.loadSearch = '+
BrowserSearch.loadSearch.toSource().replace(
'openLinkIn(',
'TreeStyleTabService.onBeforeBrowserSearch(arguments[0], useNewTab); $&'
)
);
if ('BrowserSearch' in window) {
if ('_loadSearch' in BrowserSearch) {
eval('BrowserSearch._loadSearch = '+
BrowserSearch._loadSearch.toSource().replace(
'openLinkIn(',
'TreeStyleTabService.onBeforeBrowserSearch(arguments[0], useNewTab); $&'
)
);
}
else if ('loadSearch' in BrowserSearch) { // Firefox 24 and olders
eval('BrowserSearch.loadSearch = '+
BrowserSearch.loadSearch.toSource().replace(
'openLinkIn(',
'TreeStyleTabService.onBeforeBrowserSearch(arguments[0], useNewTab); $&'
)
);
}
}
let (functions = [