Title for Webview

ofc performance more important

im using this

BTTWindowWillBecomeVisible=async()=>{callBTT('set_string_variable',{variable_name:'SWM-OP',to:1})}
BTTWillHideWindow=i=>{callBTT('set_string_variable',{variable_name:'SWM-OP',to:0})}
BTTWillCloseWindow=i=>{callBTT('set_string_variable',{variable_name:'SWM-OP',to:0})}

Also use this trigger for safer use
Automations & Named & Other Triggers > After BetterTouchTool did Launch Start on Mac with Serial Number > Assign Value to Variable > SWM-OP > 0

thanks

when assigning numbers you should use the set_number_variable function instead. However the predefined action always uses strings, so it might make sense to use strings instead of numbers.