Difference between revisions of "MediaWiki:Common.js"

From P2SR Wiki

 
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. */
 
// TAS block syntax highlighting (TEST)
 
document.querySelectorAll(".tasblock").forEach( function(tasBlock) {
 
  let code = tasBlock.innerHTML;
 
  code.replace('version', '<span style="color:red">version</span>');
 
  tasBlock.innerHTML = code;
 
});
 

Latest revision as of 07:52, 9 August 2022

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