mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
this may or may not fix or mitigate #996
This commit is contained in:
parent
1f9030f6cb
commit
aadd95ca77
@ -29,6 +29,16 @@
|
|||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/996
|
||||||
|
// Experimental: mitigate glitchy popup UI: immediately set the firewall pane
|
||||||
|
// visibility to its last known state. By default the pane is hidden.
|
||||||
|
// Will remove if it makes no difference.
|
||||||
|
if ( vAPI.localStorage.getItem('popupFirewallPane') === 'true' ) {
|
||||||
|
uDom('#panes').addClass('dfEnabled');
|
||||||
|
}
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
var popupData;
|
var popupData;
|
||||||
var dfPaneBuilt = false;
|
var dfPaneBuilt = false;
|
||||||
var popupHeight;
|
var popupHeight;
|
||||||
@ -493,6 +503,11 @@ var toggleFirewallPane = function() {
|
|||||||
if ( popupData.dfEnabled && dfPaneBuilt === false ) {
|
if ( popupData.dfEnabled && dfPaneBuilt === false ) {
|
||||||
buildAllFirewallRows();
|
buildAllFirewallRows();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/996
|
||||||
|
// Experimental: Remember the last state of the firewall pane.
|
||||||
|
// Will remove if it makes no difference.
|
||||||
|
vAPI.localStorage.setItem('popupFirewallPane', popupData.dfEnabled);
|
||||||
};
|
};
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
<div><span data-i18n="popup3pScriptRulePrompt"></span><span data-src="/" data-des="*" data-type="3p-script"> </span><span data-src="." data-des="*" data-type="3p-script"> </span></div>
|
<div><span data-i18n="popup3pScriptRulePrompt"></span><span data-src="/" data-des="*" data-type="3p-script"> </span><span data-src="." data-des="*" data-type="3p-script"> </span></div>
|
||||||
<div><span data-i18n="popup3pFrameRulePrompt"></span><span data-src="/" data-des="*" data-type="3p-frame"> </span><span data-src="." data-des="*" data-type="3p-frame"> </span></div>
|
<div><span data-i18n="popup3pFrameRulePrompt"></span><span data-src="/" data-des="*" data-type="3p-frame"> </span><span data-src="." data-des="*" data-type="3p-frame"> </span></div>
|
||||||
</div><div id="saveRules" class="fa"></div>
|
</div><div id="saveRules" class="fa"></div>
|
||||||
|
<div> </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user