Jump to content

User:Uncontroversial Obscurity/common.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.
importScript('User:Lupin/popups.js');

popupFixRedirs=true;
popupRedlinkRemoval=true;
popupFixDabs=true;

importScript('User:Cameltrader/Advisor.js');

importScript('User:GregU/dashes.js');

var SegregateRefsJsAllowConversion = true;
importScript('User:PleaseStand/segregate-refs.js');

importScript('User:Ucucha/HarvErrors2.js');
importScript('User:Ucucha/duplinks.js');

importScript('User:Ohconfucius/script/Common Terms.js');
importScript('User:Ohconfucius/script/EngvarB.js');
importScript('User:Ohconfucius/script/MOSNUM dates.js');
addOnloadHook(function ()
{
 if (document.forms.editform)
 {
  mw.util.addPortletLink('p-tb', 'javascript:Ohc_cite_dates_to_ISO()', 'CITE dates to ISO', 't-ISO', 'ISO day month', '', '');
  mw.util.addPortletLink('p-tb', 'javascript:Ohc_code_delink_dates()', 'delink dates', 't-dmy', 'day month + CT', '', '');
  mw.util.addPortletLink('p-tb', 'javascript:Ohc_protect_dates()', 'protect dates', 't-dmy', 'day month + CT', '', '');
  mw.util.addPortletLink('p-tb', 'javascript:Ohc_remove_leading_zeros_from_nonlinked_dates ()', 'rem leading zeros', 't-dmy', 'day month + CT', '', '');
 }
});

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

importScript('User:Alarbus/hlist.js');

importScript('user:js/urldecoder.js')
var urlDecoderIntLinks = true; //also try to simplify existing [[internal links]] in selected text

importScript('User:Scottywong/diffconverter.js');

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