Content deleted Content added
Undid revision 1058050644 by AssumeGoodWraith (talk) |
Restoring revision 1273267183 by AssumeGoodWraith: (UV 0.1.6) |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1:
importScript('User:Writ Keeper/Scripts/massRollback.js'); // Backlink: [[User:Writ Keeper/Scripts/massRollback.js]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
mw.loader.load( '/w/index.php?title=User:
mw.loader.getScript("/w/index.php?title=User:Guywan/Scripts/ConfirmLogout.js&action=raw&ctype=text/javascript");
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');
$( '#ca-nstab-user a' ).text( 'Humaning page' );
$( '#ca-talk a' ).text( 'Human talking' );
Line 8 ⟶ 10:
$( '#ca-viewsource a' ).text( 'Edit: Insufficient permissions' );
$( '#ca-nstab-main a' ).text( 'Main Article' );
function catsattop() {
var cats = document.getElementById('catlinks');
Line 24 ⟶ 25:
mw.util.addPortletLink ('p-tb', '/wiki/Wikipedia:AIV', 'AIV');
mw.util.addPortletLink ('p-tb', '/wiki/Wikipedia:UAA', 'UAA');
mw.util.addPortletLink ('p-tb', '/wiki/Wikipedia:RFPP', 'RFPP');
mw.util.addPortletLink ('p-tb', '/wiki/Special:NewPages', 'New pages');
mw.util.addPortletLink ('p-tb', '/wiki/Special:NewPagesFeed', 'PageTriage');
mw.loader.load( '/w/index.php?title=User:Evad37/OneClickArchiver.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/OneClickArchiver.js]]
mw.loader.load( '/w/index.php?title=User:Evad37/MoveToDraft.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/MoveToDraft.js]]
/*** 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: 2022, month: 4, day: 1};
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!");
mw.loader.using(["mediawiki.api", "mediawiki.user"]).then(function ()
{
new mw.Api().post(
{
action: 'logout',
token: mw.user.tokens.get('csrfToken')
}).done(function (data)
{
___location = "//" + ___location.host + "/w/index.php?title="
+ "Special:Userlogin&returnto=Main_Page";
}).fail(function ()
{
console.log("logout failed")
});
});
}
});
/*** END WIKIBREAK ENFORCER ***/
|