/**
 * main.js
 *
 * Only runs in modern browsers via feature detection
 * Requires support for querySelector, classList and addEventListener
 */

if('querySelector' in document && 'classList' in document.createElement('a') && 'addEventListener' in window) {

  /**
   * Add class "js" to html element
   */
  document.querySelector('html').classList.add('js');

  /**
   * Add line numbers to <pre>
   */
  function numberedLines() {
    var pre = document.querySelectorAll('pre'),
        pl = pre.length;

    for (var i = 0; i < pl; i++) {
      pre[i].insertAdjacentHTML('beforeend', '<span class="ln" aria-hidden="true"></span>');
      var num = pre[i].innerHTML.split(/\n/).length;

      for (var j = 0; j < num; j++) {
        var lineNum = pre[i].querySelector('.ln');
        lineNum.insertAdjacentHTML('beforeend', '<span></span>');
      }
    }
  }

  numberedLines();

}

@@ -878,10 +878,1272 @@
 nes();%0A%0A
+  /**%0A   * Toggle dyslexic mode%0A   */%0A  function dyslexicMode() %7B%0A%0A    // Place button inside role=%22banner%22%0A    var toggleContainer = document.querySelector('%5Brole=%22banner%22%5D .landmark-content');%0A%0A    // Create toggle button%0A    toggleContainer.insertAdjacentHTML('beforeend', '%3Cbutton type=%22button%22 class=%22toggle-dyslexic-mode%22 data-text-original=%22Enable dyslexic mode%22 data-text-swap=%22Disable dyslexic mode%22%3EEnable dyslexic mode%3C/button%3E');%0A%0A    // Cache button selector%0A    var dyslexicButton = document.querySelector('.toggle-dyslexic-mode');%0A%0A    // Function to toggle class and swap text on button%0A    function toggleDyslexicMode() %7B%0A      // Toggle the clas on %3Cbody%3E%0A      document.body.classList.toggle('dyslexic-mode');%0A%0A      // Swap text on %3Cbutton%3E%0A      if (dyslexicButton.getAttribute(%22data-text-swap%22) == dyslexicButton.innerHTML) %7B%0A        dyslexicButton.innerHTML = dyslexicButton.getAttribute(%22data-text-original%22);%0A      %7D else %7B%0A        dyslexicButton.setAttribute(%22data-text-original%22, dyslexicButton.innerHTML);%0A        dyslexicButton.innerHTML = dyslexicButton.getAttribute(%22data-text-swap%22);%0A      %7D%0A    %7D%0A%0A    // Swap class & text on click%0A    dyslexicButton.addEventListener(%22click%22, toggleDyslexicMode, false);%0A  %7D%0A%0A  dyslexicMode();%0A%0A
 %7D%0A

Add function for toggling dyslexic mode