mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 01:59:38 +02:00
allow un-whitelisting in non-advanced user mode
This commit is contained in:
parent
94679b316a
commit
9bc029b72c
@ -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',
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user