User:Nova/cologneblue.js

From the Audiovisual Identity Database, the motion graphics museum

Revision as of 17:26, 2 May 2022 by Nova (talk | contribs) (thought i'd use pajamafrix's wetpaint theme)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, 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 / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
	// 'Wetpaint' modification for 'Cologne Blue' MediaWiki theme
	// intended for use on the CLG wiki
	// ----------
	// copy and paste all of this into your custom javascript for the 'cologne blue' theme, available under 'user preferences > theme'.
	// make sure you also have the custom CSS set or else it might not look right.
	
	// adds extra CSS into the header
	$('head').append('<style>#linkcollection{margin-bottom:10px}#p-search{padding:5px;display:inline-block!important;margin-top:5px}#linkcollection,#p-search{visibility:visible}#p-search br,#p-search h3,#searchButton{display:none}#footer form{display:none}#ca-cb-edit{font-size:inherit;padding:0;margin:0;height:1.5em}#ca-cb-edit a{background:#a9ceee url(https://i.imgur.com/feC4z6s.png) repeat-x top left;background-color:#a9ceee;border:solid 1px #979797;color:#333;padding:.3em 1em .3em 1em;margin:0 0 0 .5em;cursor:pointer;font-weight:700;font-size:12px;overflow:visible;width:auto;text-decoration:none;font-family:Tahoma}</style>');

	// moves the categories into the article container
    document.getElementById('article').appendChild(
        document.getElementById('catlinks')
    );
	
	// checks for 'Edit source' on a page, if it finds it, then it moves it above the article heading
    if (document.contains(document.getElementById('ca-cb-edit'))) {
        document.getElementById('firstHeading').prepend(document.getElementById('ca-cb-edit'));
    }
    
	// moves the search box from the sidebar to above the article container
    document.getElementById('linkcollection').appendChild(
        document.getElementById('p-search')
    );

	// TBD.
    document.getElementById('footer-navigation').appendChild(
        document.getElementById('titlelinks')
    );
Cookies help us deliver our services. By using our services, you agree to our use of cookies.