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