MediaWiki

Gadget-randomSearch.js

From Dogcraft Wiki

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.
var randomSearch = document.createElement('a'),
    dice = document.createElement('i');

    randomSearch.id = "randomSearch";
    randomSearch.href = '/wiki/Special:Random';
    dice.className = 'fa-solid fa-dice';

randomSearch.appendChild(dice);
$('#wikiSearch').append(randomSearch);