From 59a639853cfe69b30ed48dc07d1992da17b30f63 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 27 Feb 2008 01:26:38 +0000 Subject: [PATCH] cosmetic git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1930 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/hacks.js | 77 +++++++++++++--------------- content/treestyletab/treestyletab.js | 35 ++++++------- 2 files changed, 51 insertions(+), 61 deletions(-) diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index b0a62c0f..5c85eaf6 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -41,12 +41,12 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { if ('MultipleTabService' in window) { // Multiple Tab Handler eval('MultipleTabService.showHideMenuItems = '+ MultipleTabService.showHideMenuItems.toSource().replace( - /var separators = /, + 'var separators = ', <> + $&]]> ) ); } @@ -100,51 +100,48 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { eval('autoHIDE.EndFull = '+ autoHIDE.EndFull.toSource().replace( '{', - <> ) ); eval('autoHIDE.SetMenu = '+ autoHIDE.SetMenu.toSource().replace( '{', - <> ) ); eval('autoHIDE.MoveC = '+ autoHIDE.MoveC.toSource().replace( '{', - <> ).replace( '.move(0, - this.delta)', @@ -215,8 +212,7 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { eval('window.TMP_TabDragGesture = '+ window.TMP_TabDragGesture.toSource().replace( '{', - <> @@ -977,18 +977,16 @@ catch(e) { eval('nsContextMenu.prototype.openLinkInTab = '+ nsContextMenu.prototype.openLinkInTab.toSource().replace( '{', - <> ) ); eval('nsContextMenu.prototype.openFrameInTab = '+ nsContextMenu.prototype.openFrameInTab.toSource().replace( '{', - <> ) ); @@ -998,7 +996,7 @@ catch(e) { <> + $&]]> ) ); eval('nsContextMenu.prototype.viewBGImage = '+ @@ -1007,7 +1005,7 @@ catch(e) { <> + $&]]> ) ); eval('nsContextMenu.prototype.addDictionaries = '+ @@ -1016,7 +1014,7 @@ catch(e) { <> + $&]]> ) ); @@ -1026,10 +1024,10 @@ catch(e) { if (funcs[i] in window && /^function handleLinkClick/.test(window[funcs[i]].toString())) eval('window.'+funcs[i]+' = '+ window[funcs[i]].toSource().replace( - /openNewTabWith\(/g, + /(openNewTabWith\()/g, <> + $1]]> ).replace( /(event.ctrlKey|event.metaKey)/, <> + $1]]> ) ); } @@ -1130,7 +1128,7 @@ catch(e) { 'gBrowser.loadTabs(', <> + $&]]> ) ); }; @@ -1141,14 +1139,13 @@ catch(e) { eval('nsBrowserAccess.prototype.openURI = '+ nsBrowserAccess.prototype.openURI.toSource().replace( - /switch\s*\(aWhere\)/, + /(switch\s*\(aWhere\))/, <> + $1]]> ) ); window.QueryInterface(Components.interfaces.nsIDOMChromeWindow).browserDOMWindow = null; @@ -1160,7 +1157,7 @@ catch(e) { <> + $&]]> ) ); },