I’m moving my blog to a self-hosted alternative, you can find the rest of this post here: https://blog.luitjes.it/posts/using-xpath-to-rewrite-ruby-code-with-ease/