A Quebec man has pleaded guilty to uttering threats toward Prime Minister Justin Trudeau and Quebec Premier François Legault in a series of online videos.