User:Acagastya/boldName.js

(function boldName { const username = mw.config.get('wgUserName');  const myEdits = [...document.getElementsByTagName('a')].filter(link => link.innerText.includes(username) && link.className.includes('mw-userlink'));  myEdits.forEach(link => link.className = link.className + " username-bold-link");

const myPages = [...document.getElementsByTagName('a')].filter(link => link.innerText.includes(username) && !link.className.includes('mw-userlink')); myPages.forEach(link => link.className = link.className + " userpage-bold-link"); })