Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





User:Rublov/anonymize.js





User page  

Talk  



Language  

Watch  

View source  


< User:Rublov
 


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.
/**
 * 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";
    }
  }
});

Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Rublov/anonymize.js&oldid=1148887462"
 



Last edited on 8 April 2023, at 22:39  


Languages

 



This page is not available in other languages.
 

Wikipedia


This page was last edited on 8 April 2023, at 22:39 (UTC).

Content is available under CC BY-SA 4.0 unless otherwise noted.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop