mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
allow un-whitelisting in non-advanced user mode
This commit is contained in:
parent
94679b316a
commit
9bc029b72c
1 changed files with 1 additions and 9 deletions
|
@ -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 a new issue