Jump to content

User:Lwarrenwiki/vector.js

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// 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"
)});
*/