ToS terms that aren’t either expected by the user, or explained in plain text without having to click through anything, are considered null and void in the EU.
By that definition, this would be unallowed modification of the computer of the user, and fall under the various hacking acts.
The more interesting thing is that this has also been rolled out to german government computers, which mostly used to use Firefox, but due to previous troubles with CliqZ and the Google Analytics in the addon menus, have already moved on to other browsers.