Jump to content

User:Seraphim System/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Seraphim System (talk | contribs) at 16:12, 20 December 2017 (edit). 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.
/* Adds a toolbox link to do a copyvio check on the given page. */

mw.loader.using("mediawiki.util", function() {
    mw.util.addPortletLink(
        "p-tb",
        "https://tools.wmflabs.org/copyvios/?lang=" + mw.config.get("wgContentLanguage") + "&project=" + mw.config.get("wgSiteName").toLowerCase() + "&title=" + encodeURIComponent(mw.config.get("wgPageName")),
        "Copyvio check",
        "t-copyvio-check",
        "Check this page for copyright violations"
    );
});

/* Syntax highligting */
//syntaxHighlighterConfig = {
//    externalLinkColor:"#FFFFFF", //sea
//    wikilinkColor:  "#98C8B2", //easter frosting
//    signatureColor: "#7b7b7b", //medium blue
//    tableColor: "#7b7b7b", //mint
//    templateColor: "#7b7b7b", //gray
//    parameterColor: "#7b7b7b", //magenta
//    tagColor: "#FFFFFF", //turkish rose
//    commentColor: "#7b7b7b", //turkish rose
//    entityColor: "#7b7b7b", //salmon

//AFD toolbar
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl('Wikipedia:List of current and old AfDs'),
    'AfDs',
    'pt-specialnew',
    'View the AfD listings of the past 7 days and more...',
    null,
    '#pt-preferences'
  );
});

//Subpages
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl('Special:PrefixIndex/User:Seraphim_System'),
    'Subpages',
    'pt-specialnew',
    'Userspace',
    null,
    '#pt-preferences'
  );
});

importScript('User:Meteor sandwich yum/Tidy citations.js'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:GregU/dashes.js');
importScript('User:Gary/nominations viewer.js'); // [[Wikipedia:Nominations Viewer]]