From 4ad0343d3f68a58aa89acd48664cbc2b6703c5ed Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 26 Mar 2009 04:43:32 +0000 Subject: [PATCH] =?UTF-8?q?Mouseless=20Browsing=20(=20https://addons.mozil?= =?UTF-8?q?la.org/firefox/addon/879=20)=20=E3=81=A7=20=E3=83=AA=E3=83=B3?= =?UTF-8?q?=E3=82=AF=E3=82=92=E9=96=8B=E3=81=91=E3=81=AA=E3=81=8F=E3=81=AA?= =?UTF-8?q?=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3929 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/hacks.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index 969126ca..17a45e98 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -754,6 +754,11 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { if ('execute' in mouselessbrowsing.EventHandler) { eval('mouselessbrowsing.EventHandler.execute = '+ mouselessbrowsing.EventHandler.execute.toSource().replace( + '{', + '{ var Prefs = mlb_common.Prefs;'+ + ' var Utils = mlb_common.Utils;'+ + ' var MlbUtils = mouselessbrowsing.MlbUtils;' + ).replace( /((?:var [^=]+ = )?Utils.openUrlInNewTab\()/g, 'TreeStyleTabService.readyToOpenChildTab(); $1' ) @@ -762,6 +767,13 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { if ('openLinkInOtherLocationViaPostfixKey' in mouselessbrowsing.EventHandler) { eval('mouselessbrowsing.EventHandler.openLinkInOtherLocationViaPostfixKey = '+ mouselessbrowsing.EventHandler.openLinkInOtherLocationViaPostfixKey.toSource().replace( + '{', + '{ var Prefs = mlb_common.Prefs;'+ + ' var Utils = mlb_common.Utils;'+ + ' var MlbUtils = mouselessbrowsing.MlbUtils;'+ + ' var MlbCommon = mouselessbrowsing.MlbCommon;'+ + ' var ShortcutManager = mlb_common.ShortcutManager;' + ).replace( 'Utils.openUrlInNewTab(', 'TreeStyleTabService.readyToOpenChildTab(); $&' )