Misplaced Pages

User:Dreamy Jazz/common.js: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Dreamy Jazz Browse history interactively← Previous editNext edit →Content deleted Content added
Revision as of 22:15, 13 September 2018 view sourceDreamy Jazz (talk | contribs)Edit filter managers, Autopatrolled, Checkusers, Administrators105,825 edits enforcing wikibreak← Previous edit Revision as of 17:10, 14 September 2018 view source Dreamy Jazz (talk | contribs)Edit filter managers, Autopatrolled, Checkusers, Administrators105,825 edits remove enforcerNext edit →
Line 16: Line 16:
importScript('User:Amalthea/userhighlighter.js'); importScript('User:Amalthea/userhighlighter.js');
mw.loader.load( "https://meta.wikimedia.org/search/?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" ); mw.loader.load( "https://meta.wikimedia.org/search/?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );

/*** 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: 2018, month: 9, day: 28};
var time = { hours: 0, minutes: 0, 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+"/search/?title="
+ "Special:Userlogout&returnto=Main_Page";
}
});
/*** END WIKIBREAK ENFORCER ***/
});
}); });

Revision as of 17:10, 14 September 2018

/*Display title modifications - __NOINDEX__{{DISPLAYTITLE:User:Dreamy <i style="color:#d01e1e">Jazz</i>/common.js}}*/
$(document).ready(function() {
	mw.loader.using( [
	'mediawiki.api',
	'mediawiki.util',
] ).then( function() {
importScript( 'User:Evad37/Watchlist-hideAWB.js' ); // Backlink: ]
var awbHiddenByDefault = false;
/* Automate purge confirmation dialog */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {
       $('form').submit();
}
importScript( 'User:Evad37/rater.js' );
importScript( 'User:Andy M. Wang/pageswap.js' ); // Backlink: ]
mw.util.addPortletLink ('p-tb', wgServer+wgArticlePath.replace("$1", "Special:PrefixIndex/"+wgPageName+"/"), 'Subpages');
importScript('User:Amalthea/userhighlighter.js');
mw.loader.load( "https://meta.wikimedia.org/search/?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
});