User:Gary/vector.js: Difference between revisions
Appearance
Content deleted Content added
c Tag: Reverted |
|||
Line 13: | Line 13: | ||
My scripts |
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/nominations viewer.js'); // Nominations Viewer |
||
importScript('User:Gary/subjects age from year.js'); // Subject Age from Year |
importScript('User:Gary/subjects age from year.js'); // Subject Age from Year |
Revision as of 20:55, 9 August 2022
/* eslint-disable func-names, line-comment-position, max-len, no-inline-comments, no-multi-str, prefer-arrow-callback */
/* global importScript, importStylesheet */
// There are more scripts here: [[User:Gary/common.js]]
/**
Configuration
*/
// importScript('User:Gary/old scripts.js'); // Old scripts
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
// Navigation Popups script
// const isArticle =
// mw.config.get('wgCanonicalNamespace') === '' &&
// mw.config.get('wgAction') === 'view';
// if (!isArticle) {
// importScript('MediaWiki:Gadget-popups.js'); // Popups JS
// importStylesheet('MediaWiki:Gadget-navpop.css'); // Popups CSS
// $(function() {
// mw.util.addCSS(
// '.navpopup { font: 14px Georgia !important; }\
// .navpopup .popupPreview p { line-height: 1.5em; }'
// );
// });
// }
// 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 */'
);
});