Difference between revisions of "MediaWiki:Common.js"

From P2SR Wiki

(asdf)
 
 
(2 intermediate revisions by the same user not shown)
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(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. */