Jump to content

User:Gary/common.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.
/* eslint-disable func-names, line-comment-position, max-len, no-inline-comments, no-multi-str, prefer-arrow-callback */
/* global importScript, importStylesheet */

// importScript('User:Gary/old scripts.js'); // Old scripts

/**
 * Testing local user scripts
 */
mw.loader.load('http://127.0.0.1:5000/wikipedia.js');

/**
 * Configuration
 */
importScript('User:Gary/config.js'); // Configuration

/**
 * My scripts
 */
importScript('User:Gary/comments in local time.js'); // Comments in Local Time
importScript('User:Gary/nominations viewer.js'); // Nominations Viewer
importScript('User:Gary/subjects age from year.js'); // Subject Age from Year

/**
 * Scripts from other users
 */
importScript('MediaWiki:Gadget-edittop.js'); // Edit Top
importScript('MediaWiki:Gadget-metadata.js'); // Metadata JS
importStylesheet('MediaWiki:Gadget-metadata.css'); // Metadata CSS
importScript('User:Dr pda/prosesize.js'); // Prose Size
importScript('MediaWiki:Gadget-DotsSyntaxHighlighter.js'); // Syntax Highlighter
importScript('User:Cacycle/wikEdDiff.js'); // wikEdDiff

// User info script and CSS
importScript('User:PleaseStand/userinfo.js');

$(function() {
  mw.util.addCSS(
    '.ps-group-reviewer { color: #590; } /* A light green color */\
    .ps-group-sysop { color: #070; } /* A dark green color */\
    .ps-group-bureaucrat { color: #06c; } /* A blue color */\
    .ps-blocked { color: #901; } /* A red color */'
  );
});