Is there a way to block <script> elements with WKContentRuleList?

Is there a way to block certain embedded inline javascript elements using WKContentRuleList? For example

<script>
evilJavascriptHere
</script>

The documentation states that you can specify a url-filter but what about inline scripts?