1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00

allow un-whitelisting in non-advanced user mode

This commit is contained in:
Raymond Hill 2018-03-31 15:02:12 -04:00
parent 94679b316a
commit 9bc029b72c
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -411,9 +411,7 @@ var renderPopup = function() {
elem.classList.toggle('advancedUser', popupData.advancedUserEnabled); elem.classList.toggle('advancedUser', popupData.advancedUserEnabled);
elem.classList.toggle( elem.classList.toggle(
'off', 'off',
popupData.pageURL === '' || popupData.pageURL === '' || !popupData.netFilteringSwitch
!popupData.netFilteringSwitch ||
popupData.pageHostname === 'behind-the-scene' && !popupData.advancedUserEnabled
); );
// If you think the `=== true` is pointless, you are mistaken // If you think the `=== true` is pointless, you are mistaken
@ -649,12 +647,6 @@ messaging.addChannelListener('popup', onPopupMessage);
var toggleNetFilteringSwitch = function(ev) { var toggleNetFilteringSwitch = function(ev) {
if ( !popupData || !popupData.pageURL ) { return; } if ( !popupData || !popupData.pageURL ) { return; }
if (
popupData.pageHostname === 'behind-the-scene' &&
!popupData.advancedUserEnabled
) {
return;
}
messaging.send( messaging.send(
'popupPanel', 'popupPanel',
{ {