Remove needless compatibility codes for Snap Links Plus
The addon includes same code in itself.
This commit is contained in:
parent
e3726d393d
commit
2ff3399300
@ -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 &&
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user