User:Rummskartoffel/payattention.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | Documentation for this user script can be added at User:Rummskartoffel/payattention. |
// Script adapted from [[User:MER-C/payattention.js]] to work on mobile.
/*
This script can be used as a kind of last-ditch effort at establishing contact with
a user who cannot be reached any other way. When loaded or pasted into a user's
common.js by an interface administrator, it will open a message box whenever they
edit a page other than their own user talk page and whenever they upload a file.
It will not prevent them from editing, but it is still a quite intrusive and rude
measure, so it probably shouldn't be used before all other means (safe for a block,
of course) are exhausted.
This script does not work on non-web, i.e. app, users, because the Wikipedia apps
do not execute user scripts.
*/
var username = mw.config.get("wgUserName");
var pagename = mw.config.get("wgPageName");
var is_minerva = mw.config.get("skin") === "minerva";
var message = "Editors have raised multiple concerns with your edits. Go to User talk:" + username + " (like you would go to any other Wikipedia article) or look at your notifications to resolve them.";
if (!is_minerva) {
if ( (mw.config.get("wgAction") == "edit" && pagename != ("User talk:" + username)) || pagename == "Special:Upload") {
alert(message);
}
} else {
window.addEventListener("hashchange", function() {
if (location.hash.startsWith("#/editor")) {
alert(message);
}
});
}
/*
Instructions for use: add the following line or copy and paste the above to [[User:X/common.js]], then protect that page.
mw.loader.load("//wiki.riteme.site/w/index.php?title=User:Rummskartoffel/payattention.js&action=raw&ctype=text/javascript"); // Unprotect and remove this line when editor has responded to their communication issues.
==Your lack of communication==
Wikipedia is a collaborative project; you are <u>expected</u> to pay attention to this page and respond to the concerns of other editors.
Failure to do so may result in your [[WP:BLOCK|editing privileges being revoked]] due to said concerns. When a new message is posted to
this page, you will receive a notification similar to the one in [[:File:Echo talk page notification.PNG|this image]]. The conventions of
talk pages are outlined at [[Help:Using talk pages]] and [[Wikipedia:Talk page guidelines]].
When you have understood this concern, please summarize the messages on this page (including this one), state how your editing will improve
in response to them and place {{tl|adminhelp}} on this page. An administrator will soon remove the warning messages. <!-- Admin instructions:
delete [[User:X/common.js]] or unprotect it and remove the indicated script. -->
*/