Remove needless compatibility codes for Snap Links Plus

The addon includes same code in itself.
This commit is contained in:
YUKI Hiroshi 2016-09-05 16:07:25 +09:00
parent e3726d393d
commit 2ff3399300
2 changed files with 0 additions and 24 deletions

View File

@ -427,29 +427,6 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove
};
}
// Snap Links Plus
// https://addons.mozilla.org/firefox/addon/snaplinksplus/
if (TreeStyleTabUtils.getTreePref('compatibility.SnapLinksPlus')) {
if ('executeAction' in window &&
'openTabs' in window) {
eval('window.openTabs = '+
window.openTabs.toSource().replace(
/((sContent|gBrowser|getBrowser\(\))\.addTab)/,
'TreeStyleTabService.readyToOpenChildTab($2); $1'
)
);
}
if ('SnapLinks' in window &&
'OpenTabs' in SnapLinks) {
eval('SnapLinks.OpenTabs = '+
SnapLinks.OpenTabs.toSource().replace(
/((sContent|gBrowser|getBrowser\(\))\.addTab)/,
'TreeStyleTabService.readyToOpenChildTab($2); $1'
)
);
}
}
// Mouseless Browsing
// https://addons.mozilla.org/firefox/addon/mouseless-browsing/
if ('mouselessbrowsing' in window &&

View File

@ -706,7 +706,6 @@ pref("extensions.treestyletab.compatibility.RemoveNewTabButton", true);
pref("extensions.treestyletab.compatibility.SBMCounter", true);
pref("extensions.treestyletab.compatibility.Scriptish", false);
pref("extensions.treestyletab.compatibility.SelectionLinks", true);
pref("extensions.treestyletab.compatibility.SnapLinksPlus", true);
pref("extensions.treestyletab.compatibility.STM.warnForNewTabPosition", true);
pref("extensions.treestyletab.compatibility.STM", true); // Super Tab Mode
pref("extensions.treestyletab.compatibility.TabControl", true);