Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6035448
dispatcher.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
dispatcher.js
View Options
(
function
()
{
// Include resources for specific special pages
switch
(
mw
.
config
.
get
(
'wgCanonicalSpecialPageName'
)
)
{
case
'Block'
:
require
(
'./SpecialBlock.js'
).
onLoad
();
break
;
case
'Recentchanges'
:
case
'Watchlist'
:
require
(
'./initOnHook.js'
)();
break
;
case
'Contributions'
:
if
(
mw
.
config
.
get
(
'wgRelevantUserName'
)
&&
mw
.
util
.
isTemporaryUser
(
mw
.
config
.
get
(
'wgRelevantUserName'
)
)
)
{
require
(
'./SpecialContributions.js'
)(
document
,
'Contributions'
);
}
break
;
case
'DeletedContributions'
:
if
(
mw
.
config
.
get
(
'wgRelevantUserName'
)
&&
mw
.
util
.
isTemporaryUser
(
mw
.
config
.
get
(
'wgRelevantUserName'
)
)
)
{
require
(
'./SpecialContributions.js'
)(
document
,
'DeletedContributions'
);
}
break
;
case
'IPContributions'
:
{
// wgRelevantUserName is `null` if a range is the target
// so check the variable passed from SpecialIPContributions instead.
const
ipRangeTarget
=
mw
.
config
.
get
(
'wgIPRangeTarget'
);
// Only trigger if the target is an IP range. A single IP target doesn't
// need IP reveal buttons.
if
(
ipRangeTarget
&&
mw
.
util
.
isIPAddress
(
ipRangeTarget
,
true
)
&&
!
mw
.
util
.
isIPAddress
(
ipRangeTarget
)
)
{
require
(
'./initOnLoad.js'
)();
}
break
;
}
}
// Include resources for all but a few specific special pages
// and for non-special pages that load this module
let
excludePages
=
[
'IPContributions'
,
'GlobalContributions'
,
'Contributions'
,
'Recentchanges'
,
'Watchlist'
];
excludePages
=
excludePages
.
concat
(
mw
.
config
.
get
(
'wgCheckUserSpecialPagesWithoutIPRevealButtons'
,
[]
)
);
if
(
!
mw
.
config
.
get
(
'wgCanonicalSpecialPageName'
)
||
!
excludePages
.
includes
(
mw
.
config
.
get
(
'wgCanonicalSpecialPageName'
)
)
)
{
require
(
'./initOnLoad.js'
)();
}
// Include auto-reveal on every page, if user has the right to auto-reveal
if
(
mw
.
config
.
get
(
'wgCheckUserTemporaryAccountAutoRevealAllowed'
)
)
{
require
(
'./autoReveal.js'
)();
}
}()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 4 2026, 19:10 (8 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
79/6b/dc6c25ebf1816a9143697167aed5
Default Alt Text
dispatcher.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment