Greasy Fork is available in English.

不要翻译页面上的代码

避免google网页翻译github站点中的代码

// ==UserScript==
// @name         不要翻译页面上的代码
// @namespace    http://floatsyi.com/
// @version      0.0.1
// @description  避免google网页翻译github站点中的代码
// @author       floatsyi
// @license      MIT
// @match        *://*/*
// ==/UserScript==
/* jshint esversion: 6 */
;(function () {
  'use strict'
    const notranslate = (node) => void node.classList.add('notranslate')
    const pres = document.querySelectorAll('pre')
    pres.forEach(function (pre) {
      notranslate(pre)
    })
})