1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-01 16:33:06 +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(
'off',
popupData.pageURL === '' ||
!popupData.netFilteringSwitch ||
popupData.pageHostname === 'behind-the-scene' && !popupData.advancedUserEnabled
popupData.pageURL === '' || !popupData.netFilteringSwitch
);
// If you think the `=== true` is pointless, you are mistaken
@ -649,12 +647,6 @@ messaging.addChannelListener('popup', onPopupMessage);
var toggleNetFilteringSwitch = function(ev) {
if ( !popupData || !popupData.pageURL ) { return; }
if (
popupData.pageHostname === 'behind-the-scene' &&
!popupData.advancedUserEnabled
) {
return;
}
messaging.send(
'popupPanel',
{