User:Dscos/myskin.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
Documentation for this user script can be added at User:Dscos/myskin. This user script seems to have an accompanying .css page at User:Dscos/myskin.css. |
function topTabsToRightPlace() {
/* Remove the top "tabs" from the .portlet side column (why were they ever put there?) and
put them at the top of the content area, where they belong! (This allows me to use simple
relative positioning to get a proper layout. I don't have to mess around with absolute
positioning. This is necessary for my language links at the top to work properly, but it
is cleaner anyway. */
var contents = document.getElementById('column-content');
var tabs = document.getElementById('p-cactions');
tabs.parentNode.removeChild (tabs);
contents.insertBefore(tabs, contents.firstChild);
}