MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
test |
oh my god bruh |
||
| Line 8: | Line 8: | ||
const randomSmiley = smileys[Math.floor(Math.random() * smileys.length)]; | const randomSmiley = smileys[Math.floor(Math.random() * smileys.length)]; | ||
document.getElementById("pt-userpage").style.backgroundImage = | document.getElementById("pt-userpage").style.backgroundImage = "url(https://wiki.everybodyedits.com/images/"+randomSmiley+".png)"; | ||
} | } | ||
randomizeUserSmiley(); | |||
Revision as of 20:35, 13 April 2026
function randomizeUserSmiley() {
const smileys = [
"f/fe/Smiley_smiley",
"3/3a/002_grin",
"e/e5/003_tounge",
];
const randomSmiley = smileys[Math.floor(Math.random() * smileys.length)];
document.getElementById("pt-userpage").style.backgroundImage = "url(https://wiki.everybodyedits.com/images/"+randomSmiley+".png)";
}
randomizeUserSmiley();