User:PhantomTech/common.js

mw.loader.load( '/w/index.php?title=User:RedWarn/.js&action=raw&ctype=text/javascript' ); // Backlink: User:RedWarn/.js

//Add links to personal toolbar (User:IagoQnsi/addptlinks) var ptLinksToAdd = [ {              label: "ThePhantomBot", title: "ThePhantomBots's user page", url: "/wiki/User:ThePhantomBot", index: 4 },      {               label: "Pending changes", title: "View the list of pending changes", url: "/wiki/Special:PendingChanges", index: 5 } ];

var ptList = document.getElementById("p-personal").getElementsByTagName("ul")[0]; for (var i = 0; i < ptLinksToAdd.length; i++) { var newListItem = document.createElement("li"); var newLink = document.createElement("a"); newLink.setAttribute("href", ptLinksToAdd[i].url); if (ptLinksToAdd[i].hasOwnProperty("title")) { newLink.setAttribute("title", ptLinksToAdd[i].title); }	newLink.appendChild(document.createTextNode(ptLinksToAdd[i].label)); newListItem.appendChild(newLink); if (ptLinksToAdd[i].hasOwnProperty("index")) { ptList.insertBefore(newListItem, ptList.childNodes[ptLinksToAdd[i].index]); } else { ptList.appendChild(newListItem); } } importScript('User:Evad37/rater.js'); // Backlink: User:Evad37/rater.js importScript('User:Suffusion of Yellow/effp-helper.js'); // Backlink: User:Suffusion of Yellow/effp-helper.js importScript('User:PhantomTech/scripts/massRollback.js'); // Backlink: User:PhantomTech/scripts/massRollback.js importScript('User:PhantomTech/scripts/MoveToDraft.js'); // Backlink: User:PhantomTech/scripts/MoveToDraft.js importScript('User:Suffusion of Yellow/batchtest-plus.js'); // Backlink: User:Suffusion of Yellow/batchtest-plus.js