Jump to content

User:Grolltech/common.js

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.
/* This script adds a "Page Size" link to the toolbox in left column */
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]
/*  This script adds a "DYKcheck" link to the toolbox in left column */ 
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool 

/* Add External Editor Tab */
addOnloadHook(function() {
    var editTab = document.getElementById("ca-edit");
    if (!editTab) return;
    var editURL = editTab.getElementsByTagName("a")[0].href;
    mw.util.addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", "");
});

/* This script adds PERSONDATA metadata manipulation */
importScript('User:Dr pda/persondata.js'); //[[User:Dr pda/persondata.js]]

/* Adds the "{{Cite}}" button to the editing toolbar */
importScript('User:Apoc2400/refToolbarPlus.js');

/* Add court case cite to the edit toolbar */
importScript('User:MZMcBride/scotus.js');

/* [[User:Anomie/linkclassifier]] */
LinkClassifierOnDemand=true;
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]
addOnloadHook(function(){
    mw.util.addPortletLink('p-cactions', 'javascript:LinkClassifier.onDemand()', 'linkclassifier');
})

/* GoToTop link -- avoids having to scroll to top */
importScript('User:Numbermaniac/goToTop.js'); // Linkback: [[User:Numbermaniac/goToTop.js]]

/* Dot's Syntax hiighlight */
syntaxHighlighterConfig = {
    timeout: 210, //disable highlighting if it takes more than 150ms
    wikilinkColor: "#BBE8FF",       // robin's egg blue, was light grey
    tableColor: "#FFEEBB",          // pale orange, was light yellow
    headingColor: "#F4BBFF",        // magenta, was light grey
    listAndIndentColor: "#AAFFD4",  // light aquamarine, was very pale gren
}

/* History & Diffs */
/* =============== */
/* In-place diffs:  Show/hide the diff without jumping to diff page */
importScript('User:Writ Keeper/Scripts/commonHistory.js');  // Contribs & History pages
importScript('User:Writ Keeper/Scripts/userHistory.js');    // User History with in-place diffs 
/* importScript('User:Equazcion/link intermediate revisions.js'); */

/* Harvard Reference Error Checker */
importScript('User:Ucucha/HarvErrors.js');

/* ////////////////////////////////////////////////// */
/*         Holding Bin -- commented out stuff         */
/* ////////////////////////////////////////////////// */

/* WikiSpeciestab -- tab color doesn't work yet
/* 
importScript('User:Grolltech/wikispeciestab.js');
*/

/* WikiTrust -- find who added text */
/* 
$.holdReady(true);
mediaWiki.loader.load("https://toolserver.org/~netaction/wikitrust.js");
*/

/* DAB Solver */
/* addOnloadHook(function () {
	mw.util.addPortletLink("p-cactions",
		"//toolserver.org/~dispenser/cgi-bin/dab_solver.py?page="+wgContentLanguage+":"+encodeURIComponent(mw.config.get('wgPageName')),
		'Solve DABs', null,  "Disambiguate links", '3'); 
}); */