Modernly Firefox can't be customized much more than chrome - extreme hacks are needed: https://github.com/piroor/treestyletab/wiki/Code-snippets-fo...
(To clarify: it does have an adblocker, but it's quite basic, only based on a blacklist of hosts. You can also selectively enable JavaScript for individual domains, but not yet based on both webpage and its origin like with uMatrix)
However I'm avoiding media- and script-heavy websites as much as possible, and block a couple of ad networks solely because of the stress that rich media ads (videos flying all over iframes and whatnot) causes for the hardware I'm running the browser on. (I don't mind ads if they don't take 8 CPU cores to render, but they seem to be disappearing from the internet.)