Jump to content

User:Meteor sandwich yum/common.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.
importScript('User:Equazcion/ScriptInstaller.js'); // Backlink: [[User:Equazcion/ScriptInstaller.js]]
importScript('User:Ohconfucius/script/formatgeneral.js'); //Linkback: [[User:Ohconfucius/script/formatgeneral.js]] Added by Script installer


addOnloadHook(function () {

mw.util.addPortletLink("p-navigation",
	"//en.wikipedia.org/w/index.php?title=User:Meteor_sandwich_yum/common.js",
 	"My JavaScript page",
 	"pt-javascriptmypage2",
 	null);
mw.util.addPortletLink("p-navigation",
	"//en.wikipedia.org/wiki/Wikipedia:User scripts",
 	"User scripts",
 	"pt-scriptmypage",
 	null);
});

//mw.util.addPortletLink('mw-Summary', "wgContentLanguage+":"+encodeURIComponent(mw.config.get('wgPageName'))":"Summary", null, null, 'a');

importScript('User:NuclearWarfare/Mark-blocked script.js'); //Linkback: [[User:NuclearWarfare/Mark-blocked script.js]] Added by Script installer
importScript('User:Anomie/diffcur.js'); // Linkback: [[User:Anomie/diffcur.js]] Added by Script installer
importScript('User:TheJJJunk/ARA.js'); //Linkback: [[User:TheJJJunk/ARA.js]] Added by Script installer
importScript('User:Writ Keeper/Scripts/deletionFinder.js'); //Linkback: [[User:Writ Keeper/Scripts/deletionFinder.js]] Added by Script installer
mw.loader.load("//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript"); //adds the yellow broom in the regular edit toolbar that "Auto-Formats"

var markminor = true;
var showdiff = false;
var autosummary = true;
importScript('User:Meteor sandwich yum/Tidy citations.js'); //Linkback: [[User:Meteor sandwich yum/Tidy citations.js]] Added by Script installer
importScript('User:GregU/dashes.js'); //Linkback: [[User:GregU/dashes.js]] Added by Script installer
//var customsum1 = "cr.";
//var customsum2 = "refs";
//var customsum3 = "convert citations to template format";
//var customsum4 = "tagged for no documentation";
importScript('User:Ais523/adminrights.js'); //Linkback: [[User:Ais523/adminrights.js]] Added by Script installer
importScript('User:Cameltrader/Advisor.js'); //Linkback: [[User:Cameltrader/Advisor.js]] Added by Script installer
importScript('User:Dr pda/editrefs.js'); //Linkback: [[User:Dr pda/editrefs.js]] Added by Script installer
//mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript"); // [[d:User:Yair rand/checksitelinks.js]]
importScript('User:Equazcion/link intermediate revisions.js'); //Linkback: [[User:Equazcion/link intermediate revisions.js]] Added by Script installer
mw.util.addPortletLink ('p-tb', mw.config.get('wgServer')+mw.config.get('wgArticlePath').replace("$1", "Special:PrefixIndex/"+mw.config.get('wgPageName')+"/"), 'Subpages');

/*** BEGIN WIKIBREAK ENFORCER ***/
$(document).ready(function() {

	/*** Start editing here ***/

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

	var date = { year: 2014, month: 4, day: 18};
	var time = { hours: 12, minutes: 51, seconds: 0 };

	/*** 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 ***/

if(wgAction == 'edit' && wgCanonicalNamespace != 'Draft' && wgCanonicalNamespace != 'Talk' && wgCanonicalNamespace != 'User_talk' && wgCanonicalNamespace != 'Wikipedia_talk' && wgCanonicalNamespace != 'Template_talk' && wgCanonicalNamespace != 'Help_talk' && wgCanonicalNamespace != 'Draft_talk') {
    addOnloadHook(function minorEdit() {
       document.getElementById('wpMinoredit').checked = true;
    });
}
importScript('User:Addshore/friendlywelcome-custom.js'); //Linkback: [[User:Addshore/friendlywelcome-custom.js]] Added by Script installer
importScript('User:Dipankan001/revert vandalism.js'); //Linkback: [[User:Dipankan001/revert vandalism.js]] Added by Script installer
//importScript('User:Kephir/gadgets/rater.js'); //Linkback: [[User:Kephir/gadgets/rater.js]] Added by Script installer
importScript('User:Anomie/ajaxpreview.js'); //Linkback: [[User:Anomie/ajaxpreview.js]] Added by Script installer
importScript('User:Ohconfucius/script/Sources.js'); //Linkback: [[User:Ohconfucius/script/Sources.js]] Added by Script installer
importScript('User:MC10/stubtagtab.js'); //Linkback: [[User:MC10/stubtagtab.js]] Added by Script installer
importScript('User:Ucucha/duplinks.js'); //Linkback: [[User:Ucucha/duplinks.js]] Added by Script installer
importScript('User:V111P/js/whatLinksHereLinkFilter.js'); //Linkback: [[User:V111P/js/whatLinksHereLinkFilter.js]] Added by Script installer
importScript('User:Barticus88/WhatLinksHere.js'); //Linkback: [[User:Barticus88/WhatLinksHere.js]] Added by Script installer