Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6167317
AbuseLog.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
903 B
Referenced Files
None
Subscribers
None
AbuseLog.js
View Options
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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment