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: Difference between revisions
From NBITTRPG Wiki
mNo edit summary |
mNo edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* All JavaScript here will be loaded for users of the Timeless skin */ | /* 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'); | 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' | |||
}); | |||
}); | |||
Revision as of 07:10, 27 October 2026
/* 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'
});
});
