User:Ganonmew/common.js

// Text replacement $( '#siteSub' ).text( 'SmashWiki, skinned by Ganonmews CSS' ); $( '#ca-history a' ).text( 'Page history' ); $( '#ca-nstab-user a' ).text( 'Userspace' ); $( '#ca-talk a' ).text( 'Talk page' ); $( '#ca-view a' ).text( 'View' ); $( function {    var tab, tablink;

tab = document.getElementById('ca-addsection'); if ( !tab ) { return; }

tablink = tab.getElementsByTagName('a')[0]; if ( !tablink ) { return; }

tablink.firstChild.nodeValue = 'New topic'; if ( mw.config.get( 'skin' ) === 'monobook' ) { tablink.style.paddingLeft = ".4em"; tablink.style.paddingRight = ".4em"; } }); // Add links into the toolbar mw.loader.load( '//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript' ); var addtoolbarlinks = "p-personal"

addOnloadHook( function {    addPortletLink(addtoolbarlinks, 'http://www.ssbwiki.com/index.php?title=Special:Mypage/common.css&action=edit', 'Edit css', 'pt-mycss')  } ); addOnloadHook( function {    addPortletLink(addtoolbarlinks, 'http://www.ssbwiki.com/index.php?title=Special:Mypage/common.js&action=edit', 'Edit js', 'pt-myjs')  } ); addOnloadHook( function {    addPortletllink(addtoolbarlinks, 'http://www.ssbwiki.com/index.php?title=Special:Log', 'View logs', 'pt-logs')  } );