User:Locke/common.js: Difference between revisions

Want an adless experience? Log in or Create an account.
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
importScript('MediaWiki:GetElementsByClassName.js');
importScript('MediaWiki:GetElementsByClassName.js');
importScript('MediaWiki:GetChildrenByTagName.js');
 
function getChildrenByTagName(parent, name) {
var nodeList = [];
for (var child = parent.firstChild; child != null; child = child.nextSibling) {
  if (child.nodeType == 1 && name == child.nodeName) { nodeList.push(child); }
}
return nodeList;
}


/* Move tabs from the tabcontent section to the tab section */
/* Move tabs from the tabcontent section to the tab section */