Jump to content

User:GoingBatty/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by GoingBatty (talk | contribs) at 00:25, 27 June 2020 (updated links for Dispenser's tools). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
window.hotcat_use_category_links = true;

// Add Checklinks launcher in the toolbox on left
$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://69.142.160.183/~dispenser/cgi-bin/webchecklinks.py?page=" + mw.config.get('wgPageName'),
  "Checklinks"  // link label
)});

// Add Dab Solver launcher in the toolbox on left
$(function () {
 mw.util.addPortletLink(
  "p-tb",
  "http://69.142.160.183/~dispenser/cgi-bin/dab_solver.py?page="+mw.config.get('wgContentLanguage')+":"+encodeURIComponent(mw.config.get('wgPageName')),
  "Dab Solver"
)});

// 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"
)});

// importScript('User:Ohconfucius/script/flagcruft.js');  //[[User:Ohconfucius/script/flagcruft.js]]

// Add [[WP:Reflinks]] launcher in the toolbox on left
$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://69.142.160.183/~dispenser/cgi-bin/webreflinks.py/" + mw.config.get('wgPageName') 
   + "?client=script&citeweb=on&overwrite=simple&limit=10&lang=" + mw.config.get('wgContentLanguage'),
  "Reflinks"  // link label
)});

// Add WikiBlame launcher in the toolbox on left
$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://wikipedia.ramselehof.de/wikiblame.php?user_lang=en&lang=" + mw.config.get('wgContentLanguage')
  + "&project=wikipedia&article=" + mw.config.get('wgPageName')
  + "&needle=&skipversions=0&ignorefirst=0&limit=500&searchmethod=int&order=desc&user=",
  "WikiBlame"  // link label
)});

importScript('User:Ohconfucius/script/Sources.js');

importScript('User:Ohconfucius/script/MOSNUM dates.js');

// Save multiple HotCat changes
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;
  });
});

//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]]