User:Abdullah5599@legacy41961806/vector.js

importScript('MediaWiki:admin.js');

function searchbar { var del = document.getElementById('p-search'); del.parentNode.removeChild(del);

var newdiv = document.createElement('div'); var olddiv = document.getElementById('p-Navigation') var divIdName = 'p-search'; newdiv.setAttribute('id',divIdName); newdiv.setAttribute('class','portlet'); newdiv.innerHTML = ' Search   '; document.getElementById("mw-panel").insertBefore(newdiv, olddiv.nextSibling) } addOnloadHook(searchbar);