MediaWiki:Common.js: Difference between revisions

From Algorithmic Impact Assessment
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", function () { const links = document.querySelectorAll("#p-Tools a"); links.forEach(function (link) { if (link.href.includes("aia.dslab.ece.ntua.gr")) { link.setAttribute("target", "_blank"); link.setAttribute("rel", "noopener noreferrer"); } }); });"
 
No edit summary
 
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. */
document.addEventListener("DOMContentLoaded", function () {
  const links = document.querySelectorAll("#p-Tools a");
  links.forEach(function (link) {
    if (link.href.includes("aia.dslab.ece.ntua.gr")) {
      link.setAttribute("target", "_blank");
      link.setAttribute("rel", "noopener noreferrer");
    }
  });
});

Latest revision as of 07:10, 14 April 2025

/* Any JavaScript here will be loaded for all users on every page load. */