MediaWiki:Common.js
Wikia - creating communities
Note: After saving, you have to bypass your browser's cache to see the changes.
- Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5.
- Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R.
- Opera users have to clear their caches through Tools→Preferences
- Konqueror and Safari users can just click the Reload button.
- Chrome: press Ctrl+F5 or Shift+F5
/* Tools: [http://www.wikia.com/index.php?title=-&action=raw&smaxage=0&gen=js reload cache] <pre><nowiki> */ importScriptPage('MediaWiki:ShowHide2.js', 'www'); // [[Main Page]] JS transform. Originally from [[Wikipedia:MediaWiki:Monobook.js]]/[[Wikipedia:MediaWiki:Common.js]] and may be further modified for local use. function mainPageRenameNamespaceTab() { try { var Node = document.getElementById( 'ca-nstab-main' ).firstChild; if ( Node.textContent ) { // Per DOM Level 3 Node.textContent = 'Wikia'; } else if ( Node.innerText ) { // IE doesn't handle .textContent Node.innerText = 'Wikia'; } else { // Fallback Node.replaceChild( Node.firstChild, document.createTextNode( 'Wikia' ) ); } } catch(e) { // bailing out! } } if ( wgTitle == 'Wikia' && ( wgNamespaceNumber == 0 || wgNamespaceNumber == 1 ) ) { addOnloadHook( mainPageRenameNamespaceTab ); } //</nowiki></pre> <!-- last line -->
