Code Monkey home page Code Monkey logo

auto-notranslate's Introduction

Auto-notranslate

Auto disable or enable notranslate class to allow Translator such as GoogleTranslator to allow webpage translation

Logic

Remove all notranslate classes

Add notranslate for the class containing 'code'

  • For example: amber-display-codeblock amber-code

Advantages

  • Support dynamic loading, and new content will also be judged
  • Loading only processes elements whose class names have actually changed, avoiding performance waste

Install

自动化允许翻译

自动禁用或启用 notranslate 类以允许网页翻译器(如谷歌翻译)允许网页翻译

逻辑

去除所有 notranslate

为包含 'code' 类 添加 notranslate

  • 例如: amber-display-codeblock amber-code

优点

  • 支持动态加载, 新增内容也会进行判断
  • 加载只处理那些类名实际发生变化的元素, 避免性能浪费

安装

auto-notranslate's People

Contributors

lorisyounger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.