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('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',
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue