/*** @description: Move catlinks to top and leave clones at bottom.* @author: [[User:Ianezz]] 2009 ([[Commons:Village_pump/Archive/2009Sep#CSS_placement_of_categories]]), based on [[:wikinews:Help:User_style#Moving_categories_to_top]]* @author: [[User:Perhelion]] 2016/2017**//*global mw*//*jshint curly:false*/(function(){'use strict';if(mw.config.get('wgNamespaceNumber')!==-1){varc=document.getElementById('catlinks'),b=document.getElementById('bodyContent')||document.getElementById('mw-content-text'),//|| c.parentNodef=document.getElementById('file'),cc=c.cloneNode(1);// Clone with secondary priority// Insert clone at original positionif(cc.hasChildNodes()){cc.id="";cc.firstChild.id="";cc.lastChild.id="";b.insertBefore(cc,c);}// Move catlinksif(f)f.appendChild(c);elseb.insertBefore(c,b.childNodes[0]);}})();