do not translate code

hahaha!

  1. // ==UserScript==
  2. // @name do not translate code
  3. // @namespace 极客青年
  4. // @version 0.1
  5. // @description hahaha!
  6. // @author Geek
  7. // @match *://*/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var pres = document.getElementsByTagName('pre');
  14. if(pres && pres.length > 0) {
  15. for(var i = 0; i < pres.length; i++) {
  16. pres[i].classList.add('notranslate');
  17. }
  18. }
  19. })();