MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Created page with "→Any JavaScript here will be loaded for all users on every page load.: document.addEventListener("DOMContentLoaded", () => { document.querySelectorAll("syntaxhighlight").forEach((block) => { // Create the copy button const button = document.createElement("button"); button.className = "copy-button"; button.textContent = "Copy"; // Add click event to copy the code button.addEventListener("click", () => {..." |
Replaced content with "→Any JavaScript here will be loaded for all users on every page load.: " Tag: Replaced |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||