Welcome to Assassin's Creed Wiki! Log in and join the community.

User:Vatsa1708/wikia.js

From the Assassin's Creed Wiki
Revision as of 09:18, 19 August 2011 by imported>Vatsa1708 (...)
Jump to navigation Jump 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.
/** remove admin link on toolbar **/
$().ready( function() {
 $('li > a[data-tracking="admindashboard/toolbar/admin"]').remove();
} );

function urlQuery(quer) {
	for(i in location.href.split('?')) {
		for(j in location.href.split('?')[i].split('&')) {
			if(location.href.split('?')[i].split('&')[j].split('=')[0] == quer) {
				return location.href.split('?')[i].split('&')[j].split('=')[1];
			}
		}
	}
	return '';
}

/**profile edit button**/
$(function() {
  $('.masthead-info hgroup h2').insertAfter('.masthead-info hgroup h1').css({display: 'inline',paddingLeft: '10px'});
  $('.UserProfileActionButton').prependTo('.masthead-info hgroup').css({float: 'right', padding: '0'});
});