Jump to content

User:Quiddity/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Quiddity (talk | contribs) at 20:23, 12 November 2014 (test 6tabs). 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.
// STANDARD:

// Highlight admin names – color tweaked in user.css
importScript('User:Amalthea/userhighlighter.js'); // [[User:Amalthea/userhighlighter.js]]

// [[User:Js/ajaxPreview]] – Shows both "preview" and "changes" with Ajax, much faster than standard preview/changes buttons.
importScript('User:Js/ajaxPreview.js');
ajaxPreviewPos = 'bottom';  // Buttons on the bottom, replacing standard buttons.

// importScript('User:Anomie/ajaxpreview.js'); // Linkback: [[User:Anomie/ajaxpreview.js]]

// Link Classifier (run on demand version) - change link colors for redirects, disambigs, afds, etc – color tweaked in user.css
LinkClassifierOnDemand=true;
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]
mw.util.addPortletLink('p-cactions', 'javascript:LinkClassifier.onDemand()', 'Link Classifier');

// Change the color of talkpage tabs, if they just contain banners, or are redirects
importScript('User:Anomie/talklink.js'); // Linkback: [[User:Anomie/talklink.js]]
importStylesheet('User:Anomie/talklink.css'); // Linkback: [[User:Anomie/talklink.css]]

// Add info on userpages listing their flags, account-age, contributions-count, and last-edit-time
importScript("User:PleaseStand/userinfo-dev.js");

// Show ToC limit, if limited
importScript('User:Gary_King/show_TOC_limit.js');

// inlineDiffDocs
inspectText = "+";
hideText = "-";
showText = "+";
importScript('User:Writ Keeper/Scripts/commonHistory.js');

// TESTING:

// Reasonator in Search results
importScript('MediaWiki:Wdsearch.js');

/**
 * Time to wait in ms before showing a popup on hover
 * @property POPUP_DELAY
*/
mw.popups.render.POPUP_DELAY = 1000;

/**
 * Time to wait in ms before closing a popup on de-hover
 * @property POPUP_CLOSE_DELAY
*/
mw.popups.render.POPUP_CLOSE_DELAY = 300;

/**
 * Time to wait in ms before starting the API queries on
hover, must be <= POPUP_DELAY
 * @property API_DELAY
*/
mw.popups.render.API_DELAY = 500;


//[[user:js/6tabs-vector]]
importScript('user:js/6tabs-vector.js')