NoScript is a Firefox extension by Giorgio Maone that's been around since 2005. It blocks scripts, fonts, media and other active content site by site. Tor Browser ships with it, and it's what actually does the work behind the Safer and Safest security levels.

Recent versions of Tor Browser hide the NoScript icon from the toolbar by default. The Tor Project found that people fiddling with per-site permissions made themselves stand out, since every unusual combination of allowed scripts is another bit of fingerprint. The intended way to control it now is the shield icon and the three security levels, which keep users in a few large groups.

Why block scripts at all? Many browser exploits rely on JavaScript, including the one used against Freedom Hosting visitors in 2013. Turning it off at Safest removes a big chunk of attack surface. The trade-off is that a lot of the web breaks, including some onion sites that rely on JavaScript for logins or captchas.