Greasemonkeyとの互換性のためのコードを少し変更
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5609 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
4fa2ea39d9
commit
ea30dc3f4e
@ -740,12 +740,9 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() {
|
||||
// https://addons.mozilla.org/firefox/addon/748
|
||||
if ('GM_BrowserUI' in window && 'openInTab' in GM_BrowserUI) {
|
||||
eval('GM_BrowserUI.openInTab = '+
|
||||
GM_BrowserUI.openInTab.toSource().replace( // old
|
||||
'document.getElementById("content")',
|
||||
'TreeStyleTabService.readyToOpenChildTab($&); $&'
|
||||
).replace( // GM 0.8 or later
|
||||
/(if\s*\(this\.isMyWindow\(([^\)]+)\)\)\s*\{\s*)(this\.tabBrowser)/,
|
||||
'$1 TreeStyleTabService.readyToOpenChildTab($2); $3'
|
||||
GM_BrowserUI.openInTab.toSource().replace(
|
||||
/(if\s*\(this\.isMyWindow\([^\)]+\)\)\s*\{\s*)(this\.tabBrowser)/,
|
||||
'$1 TreeStyleTabService.readyToOpenChildTab($2); $2'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user