Jump to content

User:Volcanooo456/common.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Volcanooo456 (talk | contribs) at 16:33, 8 November 2023. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:MusikAnimal/scriptManager.js'); // Backlink: [[User:MusikAnimal/scriptManager.js]]
importScript('User:Guywan/Scripts/ConfirmLogout.js'); // Backlink: [[User:Guywan/Scripts/ConfirmLogout.js]]
importScript('User:Bradv/Scripts/Notepad.js'); // Backlink: [[User:Bradv/Scripts/Notepad.js]]
importScript('User:Rublov/anonymize.js'); // Backlink: [[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";
    }
  }
});