Difference between revisions of "MediaWiki:Common.js"

From Sinden Lightgun
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
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");
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
var newLi = document.createElement("li");// creating a list item
newLi.innerHTML = '<span style="weight:bold !important"><a href="https://www.sindenshop.com/" title="Sinden Shop">Sinden Shop</a></span>';
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
ul.appendChild(newLi);//adding list item to list

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