Page MenuHomeWickedGov Phorge

AbuseLog.js
No OneTemporary

Size
903 B
Referenced Files
None
Subscribers
None

AbuseLog.js

const ipReveal = require( './ipReveal.js' );
/**
* Run code for use when the Special:AbuseLog page loads.
*
* This adds buttons to abuse filter log entries performed by temporary accounts,
* for revealing the IP addresses used by the temporary account.
*
* @param {Object} [documentRoot] A Document or selector to use as the root of the
* search for elements
*/
function onLoad( documentRoot = null ) {
if ( !documentRoot ) {
documentRoot = document;
}
ipReveal.enableMultiReveal( $( documentRoot ) );
const $ipRevealButtons = ipReveal.addIpRevealButtons(
$( '#bodyContent', documentRoot ).find( 'form ul li[data-afl-log-id]' )
);
// Avoid unnecessary requests for auto-reveal if the acting user is blocked (T345639).
if ( !mw.config.get( 'wgCheckUserIsPerformerBlocked' ) ) {
ipReveal.automaticallyRevealUsers( $ipRevealButtons );
}
}
module.exports = {
onLoad: onLoad
};

File Metadata

Mime Type
text/plain
Expires
Oct 8 2026, 17:05 (7 w, 6 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
72/5d/02f0c39c8029c0207b21a21eaf1a
Default Alt Text
AbuseLog.js (903 B)

Event Timeline