Created
March 26, 2020 10:19
-
-
Save akameco/e6e2a30a16b037dd42c642fcbadf31bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name pre-notranslate | |
// @namespace akameco.github.io | |
// @version 0.1 | |
// @description Do not translate inside pre | |
// @author akameco | |
// @match * | |
// @grant none | |
// ==/UserScript== | |
document.addEventListener("DOMContentLoaded", () => { | |
for (const element of Array.from(document.getElementsByTagName("pre"))) { | |
element.classList.add("notranslate"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment