MediaWiki

Gadget-homebutton.js

From Dogcraft Wiki

Revision as of 17:24, 7 April 2021 by Domino (talk | contribs) (Domino moved page MediaWiki:Gadget-skinsandbox.js to MediaWiki:Gadget-homebutton.js without leaving a redirect: Moving homebutton into its own gadget)
(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.
$(document).ready(function() {
	var dcHomepageButton = '<a href="//dogcraft.net"><i class=" fa fa-home dc-home-button"></i></a>';
	$(".name > .title-name").append(dcHomepageButton);
	
	$("#p-Go_to_Dogcraft > a").html('<i class="fa fa-home dc-home-button"></i>');
	
});
Background Takeshi by Edo