User:Nunabas/global.js

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Nunabas (talk | contribs) at 17:39, 14 October 2020. It may differ significantly from the current version.

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
mw.loader.using( 'mediawiki.api.options' )
.done( function() {
    new mw.Api().saveOption( 'skin', 'monobook' );
} )
importScriptURI('https://meta.wikimedia.org/w/index.php?title=User:Nunabas/sbl.js&action=raw&ctype=text/javascript');
importScriptURI('https://en.wikipedia.org/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates.js&action=raw&ctype=text/javascript');
importScriptURI('https://en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/sectionLinkShortener.js&action=raw&ctype=text/javascript');
importScriptURI('https://en.wikipedia.org/w/index.php?title=User:Lightmouse/monobook.js/script.js&action=raw&ctype=text/javascript');
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript");
var add = mw.util.addPortletLink;mw.util.addPortletLink;
$(add('p-tb', '#', 'DATES to dmy', 'dmy-unitfixer', 'Align all dates to dmy', '', '')).click(ohc_all_to_dmy_driver);
$(add('p-tb', '#', 'DATES to mdy', 'mdy-unitfixer', 'Align all dates to mdy', '', '')).click(ohc_all_to_mdy_driver);
$(add('p-tb', '#', 'Body dates to dmy', 'body-dmy', 'day month', '', '')).click(ohc_body_to_dmy_driver);
$(add('p-tb', '#', 'Body dates to mdy', 'body-mdy', 'month day', '', '')).click(ohc_body_to_mdy_driver);
$(add('p-tb', '#', 'Body+pub dates to dmy', 'bodyplus-dmy', 'Body and publication dates to dmy', '', '')).click(ohc_dmy_publication_dates_driver);
$(add('p-tb', '#', 'Body+pub dates to mdy', 'bodyplus-mdy', 'Body and publication dates to mdy', '', '')).click(ohc_mdy_publication_dates_driver);
//$( add('p-tb', '#', 'ISO to dmy', 't-ISOdmy', 'ISO day month', '', '') ).click(ohc_ISO_to_dmy_driver);
//$( add('p-tb', '#', 'ISO to mdy', 't-ISOmdy', 'ISO month day', '', '') ).click(ohc_ISO_to_mdy_driver);
$(add('p-tb', '#', 'BIGENDIAN ref dates', 't-allISO', 'ref dates to Big-endian', '', '')).click(ohc_Bigendian_ref_dates_driver);
//$( add('p-tb', '#', 'Del year-in-X dates', 't-yearinX', 'Year in X', '', '') ).click(ohc_delink_year_in_X_driver);
$(add('p-tb', '#', 'Expand ref dates', 't-expandref', 'Expand month names within refs', '', '')).click(ohc_expand_ref_dates_driver);
$(add('p-tb', '#', 'Expand all dates', 't-expandall', 'Expand month names throughout', '', '')).click(ohc_expand_all_dates_driver);
//$(add('p-tb', '#', 'Abbrev ref dates', 't-abbrevref', 'Abbreviate month names within refs', '', '')).click(ohc_abbrev_ref_dates_driver);
//$( add('p-tb', '#', 'unambiguous dates', 't-slash', 'resolves slash date format', '', '') ).click(ohc_unambiguous_dates_driver);
//$( add('p-tb', '#', 'US-slash dates', 't-US', 'US-slash', '', '') ).click(ohc_US_slash_dates_driver);
//$( add('p-tb', '#', 'UK-slash dates', 't-UK', 'UK-slash', '', '') ).click(ohc_UK_slash_dates_driver);