NoScript

Tor Browser includes an add-on called NoScript, accessed by clicking the hamburger menu ("≡") at the top-right of the screen, then navigating to "Add-ons and themes". NoScript allows you to control the JavaScript that runs on individual web pages, or to block it entirely.