Skip to content

Instantly share code, notes, and snippets.

@afiram
Created June 27, 2019 11:47
Show Gist options
  • Select an option

  • Save afiram/b4f65d8bbbfb6b4e4bf8ac6ffa1492e3 to your computer and use it in GitHub Desktop.

Select an option

Save afiram/b4f65d8bbbfb6b4e4bf8ac6ffa1492e3 to your computer and use it in GitHub Desktop.

Revisions

  1. afiram created this gist Jun 27, 2019.
    7 changes: 7 additions & 0 deletions code-notranslate.user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    // ==UserScript==
    // @name code-notranslate.user.js
    // @description code notranslate css in google translater
    // @match *://*/*
    // ==/UserScript==
    ["pre", "code",".highlight"].map(x=>[].map.call(document.querySelectorAll(x),e =>
    e.classList.add("notranslate")))