Auto resize a window based on title name or url?

Hey everyone, I wanted to know if this is possible, I tried tinkering with it myself but no luck. Does anyone know how I would go about resizing a window automatically without the use of shortcuts every-time it pops up?

Imprint | Privacy Policy