Skip to content

Instantly share code, notes, and snippets.

@rishubil
Last active October 25, 2022 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rishubil/87241cd69689aa87dbe6d88f13c4ee31 to your computer and use it in GitHub Desktop.
Save rishubil/87241cd69689aa87dbe6d88f13c4ee31 to your computer and use it in GitHub Desktop.
notranslate-lobsters.user.js
// ==UserScript==
// @name Add notranslate class on lobste.rs
// @description Add notranslate class on lobste.rs
// @version 0.0.2
// @match https://lobste.rs/*
// @updateURL https://gist.github.com/rishubil/87241cd69689aa87dbe6d88f13c4ee31/raw/notranslate-lobsters.user.js
// @downloadURL https://gist.github.com/rishubil/87241cd69689aa87dbe6d88f13c4ee31/raw/notranslate-lobsters.user.js
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.querySelectorAll(".tags").forEach((element) => {element.classList.add("notranslate")})
document.querySelectorAll(".domain").forEach((element) => {element.classList.add("notranslate")})
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment