Here is a repository of JavaScript snippets that you can use to automate plenty of daily SEO workload.
For example, The Word Count and Text Extraction is by far one of my favourite a it allows you to extract the body from a webpage and count the number of words excluding the header and the footer.