Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4085716
viewlist.page.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
833 B
Referenced Files
None
Subscribers
None
viewlist.page.js
View Options
'use strict'
;
const
Page
=
require
(
'wdio-mediawiki/Page'
);
class
ViewListPage
extends
Page
{
get
title
()
{
return
$
(
'#firstHeading'
);
}
get
newFilterButton
()
{
return
$
(
'.oo-ui-buttonElement a'
);
}
get
filterSavedNotice
()
{
return
$
(
'.cdx-message--success'
);
}
async
savedFilterID
()
{
const
successElement
=
await
this
.
filterSavedNotice
;
const
succesMsg
=
await
successElement
.
getHTML
();
const
regexp
=
/\/history\/(\d+)\//
;
return
regexp
.
exec
(
succesMsg
)[
1
];
}
async
savedFilterHistoryID
()
{
const
successElement
=
await
this
.
filterSavedNotice
;
const
succesMsg
=
await
successElement
.
getHTML
();
const
regexp
=
/\/diff\/prev\/(\d+)/
;
return
regexp
.
exec
(
succesMsg
)[
1
];
}
async
open
()
{
return
super
.
openTitle
(
'Special:AbuseFilter'
);
}
}
module
.
exports
=
new
ViewListPage
();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 18 2026, 08:29 (6 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
97/5b/56de338dc86e5b8dd05b828373bf
Default Alt Text
viewlist.page.js (833 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment