brandones / Automate the Boring Stuff notranslate

// ==UserScript==
// @name         Automate the Boring Stuff notranslate
// @version      0.1
// @description  Allow reading "Automate the Boring Stuff" on Google Translate
// @author       Brandon Istenes
// @match        https://translate.google.com/translate?sl=en&tl=es&js=y&prev=_t&hl=en&ie=UTF-8&u=https%3A%2F%2Fautomatetheboringstuff.com*
// @copyright    2018, brandones (https://openuserjs.org//users/brandones)
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var codeblocks = document.getElementsByClassName('programlisting');
    for (var i=0; i++; i < codeblocks.length) {
        codeblocks[i].classList.add('notranslate');
    }
})();