User:My Chemistry romantic/vector.js

if(mw.config.get('wgAction') == 'edit' || mw.config.get('wgAction') == 'submit') { importScript('User:V111P/js/smartLinkingLoader.js'); // User:V111P/js/smartLinkingLoader.js importScript('User:Ohconfucius/script/MOSNUM dates.js'); // User:Ohconfucius/script/MOSNUM dates.js

// install Wikipedia:User:Cacycle/wikEd in-browser text editor if(!window.location.href.includes('vector.')) { mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'		+ '&action=raw&ctype=text/javascript'); var wikEdConfig = {}; wikEdConfig.regExTypoFix = true; var wikEdConfig = { 'historyLength': { 'find': 5, 'replace': 5, 'summary': 12 }		};	} } else if(!(mw.config.get('wgAction') == 'history' || mw.config.get('wgAction') == 'submit' || mw.config.get('wgAction') == 'edit')) { importScript('User:Dr_pda/prosesize.js');               // User:Dr pda/prosesize }

var ptLinksToAdd = [ {               label: "Supercount", title: "My statistics", url: "https://tools.wmflabs.org/supercount/index.php?project=en.wikipedia.org&user=My%20Chemistry%20romantic", index: 10 },       {                label: "Logs", title: "User creation logs" , url: "https://en.wikipedia.org/w/index.php?title=Special%3ALog&type=newusers&user=&page=&year=&month=-1&tagfilter=&hide_thanks_log=1&hide_patrol_log=1&hide_tag_log=1&hide_review_log=1", index: 11 },       {                 label: "Feed", title: "New pages feed" , url: "https://en.wikipedia.org/wiki/Special:NewPagesFeed", index: 12 },       {                 label: "TWprefs", title: "Twinkle preferences" , url: "https://en.wikipedia.org/wiki/Wikipedia:Twinkle/Preferences", index: 13 },       {                 label: "CSD", title: "Speedy deletion log" , url: "https://en.wikipedia.org/wiki/User:My_Chemistry_romantic/Pages_for_speedy_deletion", index: 14 },       ]; if(mw.config.get('wgAction') == 'history') { importScript('User:Equazcion/LiveDiffLink.js'); //Linkback: User:Equazcion/LiveDiffLink }      importScript('User:IagoQnsi/addptlinks.js');

importScript('User:Lupin/recent2.js'); importScript('User:MusikAnimal/MoreMenu.js'); importScript('User:Lenore/autolink.js'); // Backlink: User:Lenore/autolink.js importScript('User:Ucucha/duplinks.js'); // User:Ucucha/duplinks importScript("User:PleaseStand/userinfo.js"); importScript('User:Equazcion/NoEditSandbox.js'); //Linkback: User:Equazcion/NoEditSandbox importScript('User:Esquivalience/mathjax.js'); importScript('User:Writ Keeper/Scripts/commonHistory.js'); //importScript('User:Js/ajaxPreview.js'); // user:js/ajaxPreview var ajaxPreviewPos = 'bottom'; //buttons on the bottom, replacing standard var ajaxPreviewScrollTop = true; //scroll to the top of preview/changes area after each update // code to execute after each preview update /*window.ajaxPreviewExec = function(previewArea) { mw.loader.using( [   'jquery.tablesorter',    'jquery.makeCollapsible'  ], function{    $( 'table.sortable' ).tablesorter;    $( '#wikiPreview .collapsible' ).makeCollapsible;  } ); };*/ // Add WP:Reflinks launcher in the toolbox on left $(function { mw.util.addPortletLink( "p-tb",    // toolbox portlet "http://dispenser.homenet.org/~dispenser/cgi-bin/webreflinks.py/" + mw.config.get('wgPageName') + "?client=script&citeweb=on&overwrite=&limit=35&lang=" + mw.config.get('wgContentLanguage'), "Reflinks" // link label )}); mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript'); /*	SMALLER TEMPLATES Description: Makes maintenance templates such as {cleanup} appear smaller so that they take up less space.

function smallerTemplates {	mw.util.addCSS('\		.mbox-image div, .mbox-image .image, .mbox-imageright { display: none; }\		table.ambox { margin: 0 15%; }\		table.ambox { border-radius: 0px; }\	'); formatBoxes('ambox-content'); formatBoxes('ambox-delete'); formatBoxes('ambox-move'); formatBoxes('ambox-notice'); formatBoxes('ambox-protection'); formatBoxes('ambox-style'); }

function formatBoxes(className) {	mw.util.addCSS('.' + className + ' td { padding: 0 0.25em !important; font-size: 10px !important; line-height: 1.5em; }'); $('.' + className).each(function { boxInit($(this)); }); }

function boxInit(box) {		// Collapse the box, using Wikipedia's own "hide" button. var collapseButton = $('.collapseButton:first > a:first', box); if (collapseButton.text == 'hide') collapseButton.click; }

if (mw.util.getParamValue('disable') != 'smalltemplates' && ((mw.config.get('wgCanonicalNamespace') == '' || mw.config.get('wgPageName') == 'User:Gary_King/Sandbox' || mw.config.get('wgPageName') == 'Wikipedia:Template_messages/Cleanup') && mw.config.get('wgAction') == 'view')) $(smallerTemplates); // Pending changes link in toolbar // By Epigenius, 2015 // with some help from MusikAnimal's talk page

function pendingchanges{ mw.util.addPortletLink("p-tb", "https://en.wikipedia.org/wiki/Special:PendingChanges", "Pending changes", "tb-pendingchanges","View the list of pending changes"); } $(pendingchanges);

$('head').one('reftoolbarbase', function { CiteTB.UserOptions['modal'] = false; }); $('head').one('reftoolbarbase', function { CiteTB.UserOptions['autoparse'] = true; }); /*** BEGIN WIKIBREAK ENFORCER ***/ $(document).ready(function {

/*** Start editing here ***/

// When you want to end your break? // no leading zeroes. (example: 9 - correct, 09 - incorrect)

var date = { year: 2016, month: 9, day: 13}; var time = { hours: 17, minutes: 35, seconds: 30 };

/*** Stop editing here ***/ var currentDate = new Date; var enforcedBreakEnd = new Date(		date.year,date.month-1,date.day,time.hours,time.minutes,time.seconds); if (currentDate <= enforcedBreakEnd) { alert("Enforced wikibreak until "+enforcedBreakEnd.toLocaleString			+ "\n(now is "+currentDate.toLocaleString+")\n\nBye!"); location = "//"+location.host+"/w/index.php?title=" + "Special:Userlogout&returnto=Main_Page"; } }); /*** END WIKIBREAK ENFORCER ***/