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:
rmg-x 2025-03-06 17:54:40 -06:00 committed by Tim Ledbetter
commit c361ea8916
Notes: github-actions[bot] 2025-03-10 12:31:30 +00:00
5 changed files with 24 additions and 0 deletions

View file

@ -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);