Last active
August 8, 2024 03:03
-
-
Save rishubil/e0ac6c16334e63abe9064323afb29d4c 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 Add notranslate class on Hacker News | |
// @description Add notranslate class on Hacker News | |
// @version 0.0.2 | |
// @match https://news.ycombinator.com/* | |
// @updateURL https://gist.github.com/rishubil/e0ac6c16334e63abe9064323afb29d4c/raw/notranslate-hackernews.user.js | |
// @downloadURL https://gist.github.com/rishubil/e0ac6c16334e63abe9064323afb29d4c/raw/notranslate-hackernews.user.js | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
document.querySelectorAll(".subline").forEach((element) => {element.classList.add("notranslate")}) | |
document.querySelectorAll(".sitebit").forEach((element) => {element.classList.add("notranslate")}) | |
document.querySelectorAll(".comhead").forEach((element) => {element.classList.add("notranslate")}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment