Difference between revisions of "MediaWiki:Common.js"
From P2SR Wiki
(asdf) |
m (Protected "MediaWiki:Common.js" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
(No difference)
|
Revision as of 07:45, 9 August 2022
/* 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; });