Skip to content

Instantly share code, notes, and snippets.

@aaira-a
Created August 26, 2022 11:01
Show Gist options
  • Save aaira-a/77ae6cc343c72afe3793a116812a1fa3 to your computer and use it in GitHub Desktop.
Save aaira-a/77ae6cc343c72afe3793a116812a1fa3 to your computer and use it in GitHub Desktop.
TamperMonkey user script to set text content
// ==UserScript==
// @name Rewrite words
// @description Rewrite words
// @grant GM_log
// @match *://*/*
// @version 1
// ==/UserScript==
setInterval (function() { doReplace() }, 1000);
function doReplace() {
try {
document.querySelector('#mm-player-username').textContent = "xxx"
} catch (error) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment