This wiki is still in active development, many areas of the site are unstable or broken.

In the meantime, consider adding content to pages you like!

MediaWiki:Timeless.js

From NBITTRPG Wiki
Revision as of 07:10, 27 October 2026 by CStatic (talk | contribs)

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* All JavaScript here will be loaded for users of the Timeless skin */
mw.loader.load('https://dev.miraheze.org/w/index.php?title=User:Splatched/timelesssearchbar.js&action=raw&ctype=text/javascript');

/* Adds delete link underneath wiki tools. */
$(function () {
    var deleteLink = document.querySelector('a[href$="delete-current-page"]');
    if (!deleteLink) {
        return;
    }
    var title = mw.config.get('wgPageName');
    if (!title) {
        return;
    }
    deleteLink.href = mw.util.getUrl(title, {
        action: 'delete'
    });
});