User:Javert2113/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Javert2113/common.css. |
importScript('User:Evad37/MoveToDraft.js'); // Backlink: [[User:Evad37/MoveToDraft.js]]
importScript('User:Writ Keeper/Scripts/teahouseUtility.js'); // Backlink: [[User:Writ Keeper/Scripts/teahouseUtility.js]]
importScript('User:SD0001/DYK-helper.js'); // Backlink: [[User:SD0001/DYK-helper.js]]
importScript('User:Writ Keeper/Scripts/teahouseTalkback.js'); // Backlink: [[User:Writ Keeper/Scripts/teahouseTalkback.js]]
importScript('User:Lourdes/PageCuration.js'); // Backlink: [[User:Lourdes/PageCuration.js]]
importScript('User:Evad37/rater.js'); // [[User:Evad37/rater]]
importScript('User:Writ Keeper/Scripts/teahouseTalkbackLink.js'); // Backlink: [[User:Writ Keeper/Scripts/teahouseTalkbackLink.js]]
importScript('User:Ocaasi/WikiLoveinstallscript.js'); // Backlink: [[User:Ocaasi/WikiLoveinstallscript.js]]
importScript('User:Frietjes/findargdups.js'); // Backlink: [[User:Frietjes/findargdups.js]]
/**
* https://en.wikipedia.org/wiki/Wikipedia:SCOTUS helper code
* @author MZMcBride
* Warning: This code is really bad and is shamelessly stolen from
* https://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization#Default_sections
*/
var infobox = new Array(
"{{Infobox SCOTUS case",
" |Litigants=",
" |ArgueDate=",
" |ArgueYear=",
" |DecideDate=",
" |DecideYear=",
" |FullName=",
" |USVol=",
" |USPage=",
" |ParallelCitations=",
" |Prior=",
" |Subsequent=",
" |Holding=",
" |SCOTUS=",
" |Majority=",
" |JoinMajority=",
" |Concurrence=",
" |JoinConcurrence=",
" |Concurrence2=",
" |JoinConcurrence2=",
" |Concurrence/Dissent=",
" |JoinConcurrence/Dissent=",
" |Dissent=",
" |JoinDissent=",
" |Dissent2=",
" |JoinDissent2=",
" |LawsApplied=",
"}}"
);
var customizeToolbar = function() {
/* Add a little gavel icon to insert "Infobox SCOTUS case" into an article */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'main',
'group': 'insert',
'tools': {
'smile': {
label: 'Insert "Infobox SCOTUS case"', // or use labelMsg for a localized label, see above
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Farm-Fresh_auction_hammer_gavel.png/22px-Farm-Fresh_auction_hammer_gavel.png',
action: {
type: 'encapsulate',
options: {
pre: infobox.join('\n') + '\n' + '\n' // text to be inserted
}
}
}
}
} );
};
/* Check if we are in edit mode and the required modules are available and then customize the toolbar */
if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) !== -1 ) {
mw.loader.using( 'user.options', function () {
if ( mw.user.options.get('usebetatoolbar') ) {
mw.loader.using( 'ext.wikiEditor', function () {
$(document).ready( customizeToolbar );
} );
}
} );
}
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/previewAndDiff.js&action=raw&ctype=text/javascript');
importScript('User:Equazcion/ScriptInstaller.js'); // Backlink: [[User:Equazcion/ScriptInstaller.js]]
importScript('User:Enterprisey/orcp-helper.js'); // Backlink: [[User:Enterprisey/orcp-helper.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
importScript('User:Equazcion/OneClickArchiver.js'); // Backlink: [[User:Equazcion/OneClickArchiver.js]]
importScript('User:Galobtter/scripts/adminhighlighter.js'); // Backlink: [[User:Galobtter/scripts/adminhighlighter.js]]
//importScript('User:Bradv/Scripts/Superlinks.js'); // Backlink: [[User:Bradv/Scripts/Superlinks.js]]
importScript('User:Lourdes/PageCuration.js'); // Backlink: [[User:Lourdes/PageCuration.js]]
importScript('User:Evad37/MoveToDraft.js'); // Backlink: [[User:Evad37/MoveToDraft.js]]
importScript('User:Enterprisey/rc-thanks.js'); // Backlink: [[User:Enterprisey/rc-thanks.js]]