Jump to content

User:Calaka/monobook.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.
// [[User:Outriggr/metadatatest.js]] <nowiki>
importScript('User:Outriggr/metadatatest.js'); 
assessmentMyTemplateCode = ["{{WPMED|class=|importance=}}", "{{WPAN|class=|importance=}}", "{{WPBIO|class=|priority|=}}" ];
assessmentDefaultProject = "{{WPMED|class=|importance=}}";
// </nowiki>

/* Script: wikiEd
 * Author: Cacycle
 * A full-featured in-browser text editor for Wikipedia edit pages. Provides wikicode syntax highlighting, regular expression search and replace, MS Word and HTML to wikicode conversion, server-independent Show preview and Show changes, fullscreen editing mode, and single-click fixing of common mistakes.
 */

//Begin wikiEd script
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript');
var wikEdUseWikEdPreset = true;
//End wikiEd script


/* Script: Popups 
 * Author: Lupin
 * Displays a popup over internal wiki links with a preview of the page and a menu of options to edit the page
 */

//Begin Popup Script
importScript('User:Lupin/popups.js');
//End Popup Script


/* Script: addPurge
 * Author: ABCD, Ilmari Karonen, and others
 * Creates a tab next to watch that purges the cached page currently being viewed
 */

//Begin addPurge script
$(function () {
    var hist; var url;
    if (!(hist = document.getElementById('ca-history') )) return;
    if (!(url = hist.getElementsByTagName('a')[0] )) return;
    if (!(url = url.href )) return;
    mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),
                   'purge', 'ca-purge', 'Purge server cache for this page', '0');
});
//End addPurge script


/* Script: Twinkle
 * Author: AzaToth
 * Twinkle gives non-administrators (and administrators, for that matter) three types of rollback functions. Other functions include a full library of speedy deletion functions, user warnings, pseudoautomagical reporting of vandals, and more
 */

//Begin Twinkle script
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklefluff.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
importScript('User:AzaToth/twinklewarn.js');
importScript('User:AzaToth/twinklearv.js');
importScript('User:AzaToth/twinklespeedy.js');
importScript('User:AzaToth/twinklediff.js');
importScript('User:AzaToth/twinkleprotect.js');
importScript('User:AzaToth/twinkleprod.js');
//End Twinkle script

importScript('User:The_Earwig/afc-helper.js'); // AfC Redirect Helper script.