Jump to content

User:D'Ranged 1/vector.js

From Wikipedia, the free encyclopedia
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.
//importScript("User:D'Ranged 1/script/MOSNUM dates.js"); //[[User:D'Ranged 1/script/MOSNUM dates.js]]
//importScript('User:Odie5533/doctoparameter.py'); //[[User:Odie5533/doctoparameter.py]]
//importScript('User:Odie5533/SnipManager.user.js'); 

importScript("User:D'Ranged 1/script/CustomRefToolbar.js");

importScript("User:Ohconfucius/script/MOSNUM dates.js"); //[[User:Ohconfucius/script/MOSNUM dates.js]]

// importScript("User:D'Ranged 1/script/SnipManager.js");


$('head').one('reftoolbarbase', function() {
   CiteTB.UserOptions['date format'] = "<monthname> <date>, <year>";
   CiteTB.UserOptions['autodate fields'] = ['accessdate', 'archivedate', 'date'];
   CiteTB.UserOptions['expandtemplates'] = true;
   CiteTB.UserOptions['autoparse'] = true;
});

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