不要翻译github上的代码

避免google网页翻译github```<pre>```标签内的内容

当前为 2019-01-13 提交的版本,查看 最新版本

// ==UserScript==
// @name         不要翻译github上的代码
// @namespace    http://floatsyi.com/
// @version      0.11
// @description  避免google网页翻译github```<pre>```标签内的内容
// @author       floatsyi
// @include      *://github.com*
// @match        *://github.com*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
     document.querySelectorAll('pre').forEach(function(pre){if(!pre.querySelector('code')) pre.innerHTML = '<code>' + pre.innerHTML + '</code>'})
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址