Greasy Fork 支持简体中文。

网页翻译过滤代码

try to take over the world!

目前為 2020-09-22 提交的版本,檢視 最新版本

// ==UserScript==
// @name         网页翻译过滤代码
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       liuyang
// @grant        none
// @include      *://*
// ==/UserScript==

(function() {
    'use strict';
    var pres = document.getElementsByTagName('pre');
    if (pres && pres.length > 0) {
        for(var i = 0; i < pres.length; i++) {
            pres[i].classList.add('notranslate');
        }
    }
})();