mic_none

User:Rublov/anonymize.js Source: en.wikipedia.org/wiki/User:Rublov/anonymize.js

/**
 * Replaces the username at the top of the screen with a generic string.
 *
 * Written by [[User:Rublov]], December 2021
 *
 * This script is developed on GitHub: https://github.com/rublovwiki/scripts
 */

$(function () {
  const outer = document.getElementById("pt-userpage");
  if (outer) {
    const inner = outer.querySelector("a span");
    if (inner) {
      inner.innerText = "User page";
    }
  }
  
  const outer2 = document.getElementById("pt-userpage-2");
  if (outer2) {
    const inner2 = outer2.querySelector("a span");
    if (inner2) {
      inner2.innerText = "User page";
    }
  }
});