This addon creates a small popup that lets you paste some JS code and inject it into the page you are currently seeing.
This is an adaptation to Firefox version of the Chrome extension "JS injector" from Daniel Han. It is only available in Chrome so I updated it and adapted it to work with Firefox.
You can check his GitHub page here
Get it on Firefox here