Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
| Line 2: | Line 2: | ||
var ul = document.querySelector("#p-namespaces ul");//finding the list |
var ul = document.querySelector("#p-namespaces ul");//finding the list |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
var newLi2 = document.createElement("li"); |
var newLi2 = document.createElement("li"); |
||
newLi2.innerHTML = '<span style="font-weight:bold !important"><a href="/index.php/Sinden_Lightgun:Contribution_rules" title="How to contribute to this wiki">Contributing</a></span>'; |
newLi2.innerHTML = '<span style="font-weight:bold !important"><a href="/index.php/Sinden_Lightgun:Contribution_rules" title="How to contribute to this wiki">Contributing</a></span>'; |
||
ul.appendChild(newLi2); |
ul.appendChild(newLi2); |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
Latest revision as of 17:35, 9 July 2026
/* Any JavaScript here will be loaded for all users on every page load. */
var ul = document.querySelector("#p-namespaces ul");//finding the list
var newLi2 = document.createElement("li");
newLi2.innerHTML = '<span style="font-weight:bold !important"><a href="/index.php/Sinden_Lightgun:Contribution_rules" title="How to contribute to this wiki">Contributing</a></span>';
ul.appendChild(newLi2);
var newLi = document.createElement("li");// creating a list item
newLi.innerHTML = '<span style="font-weight:bold !important"><a href="https://www.sindenshop.com/" title="Buy Sinden Products">Sinden Shop</a></span>';
ul.appendChild(newLi);//adding list item to list