If you’re not running mitmweb on ports 8081 or 9090, then you must change the Tampermonkey script’s matching URL to the address you’re using. This is developed and tested based on the author's usage ...