In the months leading up to a sword attack at a Brandon, Man., high school, a teen wrote in a notebook about "invaders" of Canada — specifically Black and Muslim immigrants — and his mass murder plan, a court heard Tuesday.