User:KillerRabbit/common.js

From Guild Wars 2 Wiki
Jump to navigationJump to search

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.
RLQ.push(function () {
    mw.loader.load( '/index.php?title=User:Nefastu/JS/APILink.js&action=raw&ctype=text/javascript' );
});

//toolbar modifications
if (mw.toolbar) {
//custom signature button
	mw.toolbar.addButton({
		imageFile: '//upload.wikimedia.org/wikipedia/commons/2/28/Button_info.png',
		speedTip: 'Ingame Username',
		tagOpen: '** [[User:KillerRabbit|<span style="text-shadow:1px 2px 3px #505050; font-family: \'sans-serif\';color: black;">KillerRabbit.1946</span>]] ',
		tagClose: '[[Special:Contributions/KillerRabbit|🔍]]  &mdash; ',
		sampleText: ''
	});

}