Если предположить, что нагугленный вами скрипт верен, то код должен выглядеть так:
window.addEventListener('beforescriptexecute', function(e) {
if (e.target.src.search("figma_app.029257067ade81c2e77dc715510aea42.min.js.br") > -1) {
// Stop original script
e.preventDefault();
e.stopPropagation();
e.target.remove();
fetch(e.target.src)
.then(function (response) {
return response.text();
})
.then(function (content) {
return content.replace('Copy as CSS', 'Копировать CSS');
})
.then(function (newContent) {
var script = document.createElement('script');
script.textContent = newContent;
(document.head || document.documentElement).appendChild(script);
script.onload = function() {
this.parentNode.removeChild(this);
}
});
}
});
Но
029257067ade81c2e77dc715510aea42
- это хэш содержимого файла и при каждом изменении исходника адрес будет меняться, а ваш скрипт переставать работать.