Tip: get rid of the rating feedback (thumbs up down) popup panel on the execution views

Hi there,

I have been annoyed for a while by the executing rating panel, and finally got rid of it for good today.

Context

In 2024, n8n introduced a rating panel on execution views. That was not welcome for everyone:

Solution

Without having to run TamperMonkey on all clients, here’s a solution to remove the panel on self-hosted instances, using Apache.

What it does:

  • unset the compression for execution pages, so that the page can be parsed
  • inject a script on execution pages only, that hides the rating panel

Installation

  1. Add these lines in the Apache virtual host file (e.g. <VirtualHost *:443>)
    # Hides n8n execution rating popup panel
    <LocationMatch "^/workflow/[^/]+/executions/[^/]+$">
        RequestHeader unset Accept-Encoding
        SetOutputFilter SUBSTITUTE
        AddOutputFilterByType SUBSTITUTE text/html
        Substitute "s|</head>|<script>document.addEventListener('DOMContentLoaded',function(){function h(){const e=document.querySelector('.execution-annotation-panel');if(e)e.style.display='none';}h();new MutationObserver(h).observe(document.body,{childList:true,subtree:true});});</script></head>|ni"
    </LocationMatch>
  1. Activate Apache’s substitute module and restart
a2enmod substitute
systemctl restart apache2

That’s it, would probably work with nginx’s equivalent too. n8n still rocks. Hope that helps!