User:Technical 13/Scripts/ACCHelp/Abuse log.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. |
This user script seems to have a documentation page at User:Technical 13/Scripts/ACCHelp/Abuse log. |
if(mw.config.get("wgCanonicalSpecialPageName") === "AbuseLog"){
if(typeof($("p:contains(\"No results\")").html()) === "undefined"){
$("h1#firstHeading").html(tickBad + " " + $("h1#firstHeading").html());/* Disabled
// Disabling for now, want to set it up to only warn if the triggering was in the last month
alert("\t\tWARNING!\n" + $("input[name=\"wpSearchUser\"]").val() + " has tripped an edit filter!");*/
} else {
$("p:contains(\"No results\")").addClass("error");
$("h1#firstHeading").html(tickGood + " " + $("h1#firstHeading").html());
document.title = Ucheck + document.title;
}
}
/* Notepad / TODO:
* Check if the IP/user has blocks
* If blocks, inject lines showing (un)blocks
* Turn the list on this page into an easy to read table.
** Highlight top rows if user not currently blocked and filter triggered less than a week ago in red
** Highlight rows if user not currently blocked and filter triggered betweem a week and a month ago in pink
** Highlight rows if user not currently blocked and filter triggered betweem a month and 3 months ago in light orange
** Highlight rows if user not currently blocked and filter triggered betweem 3 months and 6 months ago in yellow
*/