mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Remove (broken) benchmark pane
This commit is contained in:
parent
2849dbb805
commit
610ca2684b
5 changed files with 1 additions and 18 deletions
|
@ -76,9 +76,6 @@ iframe {
|
|||
body:not(.canUpdateShortcuts) .tabButton[href="#shortcuts.html"] {
|
||||
display: none;
|
||||
}
|
||||
body:not(.canBenchmark) .tabButton[href="#benchmarks.html"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
#dashboard-nav {
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
--><a class="tabButton" href="#dyna-rules.html" data-i18n="rulesPageName"></a><!--
|
||||
--><a class="tabButton" href="#whitelist.html" data-i18n="whitelistPageName"></a><!--
|
||||
--><a class="tabButton" href="#shortcuts.html" data-i18n="shortcutsPageName"></a><!--
|
||||
--><a class="tabButton" href="#about.html" data-i18n="aboutPageName"></a><!--
|
||||
--><a class="tabButton" href="#benchmarks.html">Benchmarks</a>
|
||||
--><a class="tabButton" href="#about.html" data-i18n="aboutPageName"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -42,7 +42,6 @@ const µBlock = (function() { // jshint ignore:line
|
|||
assetFetchTimeout: 30,
|
||||
autoUpdateAssetFetchPeriod: 120,
|
||||
autoUpdatePeriod: 7,
|
||||
benchmarkingPane: false,
|
||||
cacheStorageCompression: true,
|
||||
cacheControlForFirefox1376932: 'no-cache, no-store, must-revalidate',
|
||||
debugScriptlets: false,
|
||||
|
|
|
@ -74,10 +74,6 @@ vAPI.messaging.send('dashboard', { what: 'canUpdateShortcuts' }, response => {
|
|||
document.body.classList.toggle('canUpdateShortcuts', response === true);
|
||||
});
|
||||
|
||||
vAPI.messaging.send('dashboard', { what: 'benchmarkingPane' }, response => {
|
||||
document.body.classList.toggle('canBenchmark', response === true);
|
||||
});
|
||||
|
||||
resizeFrame();
|
||||
window.addEventListener('resize', resizeFrame);
|
||||
uDom('.tabButton').on('click', onTabClickHandler);
|
||||
|
|
|
@ -1041,14 +1041,6 @@ var onMessage = function(request, sender, callback) {
|
|||
var response;
|
||||
|
||||
switch ( request.what ) {
|
||||
case 'benchmark':
|
||||
response = µb.staticNetFilteringEngine.benchmark(request.contexts);
|
||||
break;
|
||||
|
||||
case 'benchmarkingPane':
|
||||
response = µb.hiddenSettings.benchmarkingPane;
|
||||
break;
|
||||
|
||||
case 'canUpdateShortcuts':
|
||||
response = µb.canUpdateShortcuts;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue