User:Rummskartoffel/payattention.js

// 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("//en.wikipedia.org/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 expected to pay attention to this page and respond to the concerns of other editors. Failure to do so may result in your 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 this image. The conventions of talk pages are outlined at Help:Using talk pages and 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 adminhelp on this page. An administrator will soon remove the warning messages.