Trigger on webpage

Im looking to activate a shortcut every time I visit a website but I wan to make sure it is not CPU intensive or anything. The idea is that if I visit reddit or youtube I can run a Shortcut. So i wont be clicking from outside the browser so setting BTT as the default browser wont work.

Is this best achieved with Advanced Trigger Conditions then active_website_url CONTAINS? or would that be too cpu intense? I guess I would want it to trigger within 1 minute.

Thanks

I can't say how it behaves with the CPU, but I'll take a simple Safari extension “Userscripts” and call up a trigger in BTT:

GM.xmlHttpRequest({method: "GET",url: "https://localhost:5566/trigger_named/?trigger_name=AutoTranslation"});