Context in before function

Pass context information (e.g. tabs url) to before function.