mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
WebContent+UI/Qt: Add debug option to toggle content filtering on/off
This was needed by @piruzzolo on Discord for debugging purposes and seems pretty useful :^)
This commit is contained in:
parent
00aa72c16e
commit
c361ea8916
Notes:
github-actions[bot]
2025-03-10 12:31:30 +00:00
Author: https://github.com/rmg-x
Commit: c361ea8916
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3844
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 24 additions and 0 deletions
|
@ -982,6 +982,11 @@ void Tab::set_scripting(bool enabled)
|
|||
debug_request("scripting", enabled ? "on" : "off");
|
||||
}
|
||||
|
||||
void Tab::set_content_filtering(bool const enabled)
|
||||
{
|
||||
debug_request("content-filtering", enabled ? "on" : "off");
|
||||
}
|
||||
|
||||
void Tab::set_user_agent_string(ByteString const& user_agent)
|
||||
{
|
||||
debug_request("spoof-user-agent", user_agent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue