No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 1: | Line 1: | ||
$(document).ready(function() { |
$(document).ready(function() { |
||
− | + | setTimeout(function() { |
|
− | + | if (mw.user.isAnon()) { |
|
− | + | var elements = $('.cs-header > .oo-ui-widget-disabled'); |
|
− | + | elements.each(function() { |
|
− | + | var $element = $(this); |
|
− | + | var loginMessage = '<p>Please <a href="/wiki/Special:UserLogin">login</a> or <a href="/wiki/Special:CreateAccount">sign up</a> to continue.</p>'; |
|
− | + | $element.after(loginMessage); |
|
− | + | }); |
|
− | + | } |
|
− | + | }, 250); |
|
− | |||
− | if (mw.user.isAnon()) { |
||
− | var elements = $('.cs-header > .oo-ui-widget-disabled'); |
||
− | elements.each(function() { |
||
− | var $element = $(this); |
||
− | var loginMessage = '<p>Please <a href="/wiki/Special:UserLogin">login</a> or <a href="/wiki/Special:CreateAccount">sign up</a> to continue.</p>'; |
||
− | $element.after(loginMessage); |
||
− | }); |
||
− | } |
||
}); |
}); |
Revision as of 01:22, 15 October 2023
$(document).ready(function() {
setTimeout(function() {
if (mw.user.isAnon()) {
var elements = $('.cs-header > .oo-ui-widget-disabled');
elements.each(function() {
var $element = $(this);
var loginMessage = '<p>Please <a href="/wiki/Special:UserLogin">login</a> or <a href="/wiki/Special:CreateAccount">sign up</a> to continue.</p>';
$element.after(loginMessage);
});
}
}, 250);
});