mirror of https://github.com/gorhill/uBlock.git
Cleanup unused code
Related discussion: - https://github.com/uBlockOrigin/uBlock-issues/issues/1529 - https://github.com/uBlockOrigin/uBlock-issues/discussions/1958#discussioncomment-5257148
This commit is contained in:
parent
b63ced24d4
commit
4b6ce5e402
|
@ -63,7 +63,6 @@ const hiddenSettingsDefault = {
|
||||||
cnameIgnoreRootDocument: true,
|
cnameIgnoreRootDocument: true,
|
||||||
cnameMaxTTL: 120,
|
cnameMaxTTL: 120,
|
||||||
cnameReplayFullURL: false,
|
cnameReplayFullURL: false,
|
||||||
cnameUncloak: true,
|
|
||||||
cnameUncloakProxied: false,
|
cnameUncloakProxied: false,
|
||||||
consoleLogLevel: 'unset',
|
consoleLogLevel: 'unset',
|
||||||
debugScriptlets: false,
|
debugScriptlets: false,
|
||||||
|
|
|
@ -52,7 +52,6 @@ let filteredLoggerEntryVoidedCount = 0;
|
||||||
let popupLoggerBox;
|
let popupLoggerBox;
|
||||||
let popupLoggerTooltips;
|
let popupLoggerTooltips;
|
||||||
let activeTabId = 0;
|
let activeTabId = 0;
|
||||||
let filterAuthorMode = false;
|
|
||||||
let selectedTabId = 0;
|
let selectedTabId = 0;
|
||||||
let netInspectorPaused = false;
|
let netInspectorPaused = false;
|
||||||
let cnameOfEnabled = false;
|
let cnameOfEnabled = false;
|
||||||
|
@ -1112,8 +1111,6 @@ const onLogBufferRead = function(response) {
|
||||||
allTabIdsToken = response.tabIdsToken;
|
allTabIdsToken = response.tabIdsToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
filterAuthorMode = response.filterAuthorMode === true;
|
|
||||||
|
|
||||||
if ( activeTabIdChanged ) {
|
if ( activeTabIdChanged ) {
|
||||||
pageSelectorFromURLHash();
|
pageSelectorFromURLHash();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1605,7 +1605,6 @@ const getLoggerData = async function(details, activeTabId, callback) {
|
||||||
activeTabId,
|
activeTabId,
|
||||||
colorBlind: µb.userSettings.colorBlindFriendly,
|
colorBlind: µb.userSettings.colorBlindFriendly,
|
||||||
entries: logger.readAll(details.ownerId),
|
entries: logger.readAll(details.ownerId),
|
||||||
filterAuthorMode: µb.hiddenSettings.filterAuthorMode,
|
|
||||||
tabIdsToken: µb.pageStoresToken,
|
tabIdsToken: µb.pageStoresToken,
|
||||||
tooltips: µb.userSettings.tooltipsDisabled === false
|
tooltips: µb.userSettings.tooltipsDisabled === false
|
||||||
};
|
};
|
||||||
|
|
|
@ -238,17 +238,6 @@ const onUserSettingsReady = fetched => {
|
||||||
fetched.externalLists.trim().split(/[\n\r]+/);
|
fetched.externalLists.trim().split(/[\n\r]+/);
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/1513
|
|
||||||
// Transition nicely.
|
|
||||||
// TODO: remove when current version of uBO is well past 1.34.0.
|
|
||||||
if ( typeof µb.hiddenSettings.cnameUncloak === false ) {
|
|
||||||
fetched.cnameUncloakEnabled = false;
|
|
||||||
µb.hiddenSettings.cnameUncloak = true;
|
|
||||||
µb.saveHiddenSettings();
|
|
||||||
}
|
|
||||||
µb.hiddenSettingsDefault.cnameUncloak = undefined;
|
|
||||||
µb.hiddenSettings.cnameUncloak = undefined;
|
|
||||||
|
|
||||||
fromFetch(µb.userSettings, fetched);
|
fromFetch(µb.userSettings, fetched);
|
||||||
|
|
||||||
if ( µb.privacySettingsSupported ) {
|
if ( µb.privacySettingsSupported ) {
|
||||||
|
|
Loading…
Reference in New Issue