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:
parent
c68d85c617
commit
2f51f15265
@ -159,14 +159,23 @@ var TreeStyleTabWindowHelper = {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if ('BrowserSearch' in window &&
|
if ('BrowserSearch' in window) {
|
||||||
'loadSearch' in BrowserSearch) {
|
if ('_loadSearch' in BrowserSearch) {
|
||||||
eval('BrowserSearch.loadSearch = '+
|
eval('BrowserSearch._loadSearch = '+
|
||||||
BrowserSearch.loadSearch.toSource().replace(
|
BrowserSearch._loadSearch.toSource().replace(
|
||||||
'openLinkIn(',
|
'openLinkIn(',
|
||||||
'TreeStyleTabService.onBeforeBrowserSearch(arguments[0], useNewTab); $&'
|
'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 = [
|
let (functions = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user