User:Badbread/vector.js
From Korean Wiki Project
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
addOnloadHook(function() { // Move serach bar document.getElementById("p-search").className += "portal"; document.getElementById("panel").insertBefore(document.getElementById("p-search"), document.getElementById("p-navigation")); // Move tab document.getElementById("left-navigation").insertBefore(document.getElementById("p-views"), document.getElementById("p-namespaces").nextSibling); document.getElementById("left-navigation").insertBefore(document.getElementById("p-cactions"), document.getElementById("p-views").nextSibling); // Set up search bar style document.getElementById("searchform").style.textAlign = "center"; document.getElementById("searchInput").style.width = "10em"; // Set up tab style document.getElementById("p-namespaces").style.marginRight = "1em"; });