User:Lwarrenwiki/vector.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Lwarrenwiki/vector.css. |
// See also common.js
// Preview reference information when editing section
importScript('User:Anomie/ajaxpreview.js');
// Linkback: [[User:Anomie/ajaxpreview.js]]
importScript('User:Anomie/unsignedhelper.js');
// Linkback: [[User:Anomie/unsignedhelper.js]]
// Save multiple HotCat changes
window.hotcat_use_category_links = true;
mw.loader.using("mediawiki.user", function () {
$('body').delegate('#hotcatCommitForm', 'submit', function () {
var submitType = this.wpDiff;
if (submitType) {
// Switch form submission from diff to save
this.wpEditToken.value = mw.user.tokens.get("csrfToken");
submitType.name = submitType.value = 'wpSave';
}
return true;
});
});
importScript('User:GregU/dashes.js');
// Tried and removed the following tools:
// -----------------------------------------
// Family tree building tool
// importScript("User:GregU/familytree.js");
//
// Peer reviewer script
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAndyZ%2Fpeerreviewer.js&action=raw&ctype=text/javascript'); // [[User:AndyZ/peerreviewer.js]]
//
// Add Find link launcher in the toolbox on left
/*
$(function () {
mw.util.addPortletLink(
"p-tb",
"//edwardbetts.com/find_link/" + mw.config.get('wgPageName'),
"Find link"
)});
*/
// Add LanguageTool launcher in the toolbox on left
/*
$(function () {
mw.util.addPortletLink(
"p-tb",
"http://tools.wmflabs.org/languagetool/pageCheck/index?url=" + mw.config.get('wgPageName'),
"LanguageTool"
)});
*/