This script/stylesheet is for PERSONAL use only!
You are free to install this script/stylesheet for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:ImportJS, MediaWiki:Common.js, MediaWiki:Common.css, MediaWiki:Fandomdesktop.js, MediaWiki:Fandomdesktop.css, or MediaWiki:FandomMobile.css), as it would violate Fandom's Terms of Use.
(See the customization policy)
MoreDropdown is a script that adds a number of dropdowns to the page. It provides the following on article pages:
- Purge the page
- View page logs
- View the latest edit's diff
- View subpages of this page
- View deleted revisions (requires view deleted permission)
On a userpage, it provides the following:
- View the logs that the user has preformed
- View the logs for that user
- View the user's deleted contributions (requires view deleted permission)
- Block/unblock the user (require block/unblock permission)
- Nuke the user's edits (if the script is installed, requires delete permission)
On an article page, it is placed near the contributions button. You will see it as "More" with an arrow next to it.
- On a userpage, it is placed at the button right of the user profile masthead.
There will be 2 dropdowns. The "User" dropdown, which includes items for the user, and the standard "more" dropdown which includes page tools.
Installation
Customization
There are 2 menu ID's which you can use to append more dropdown elements.
#more-dropdown#user-more-dropdown
Here is an example of adding a extra menu element:
mw.hook('dev.MoreDropdown.loaded').add(function($dropdown) {
$dropdown.append(
"<li><a href=\"/wiki/Special:Undelete/" + mw.config.get('wgPageName') + "\">Undelete</a></li>"
);
});
The example shown above is not at all the limits of customization. You can put add any type of function you wish. You can also remove elements to your taste based off their ID.
Main ID list
md-subpages- Subpages
md-purge- Purge
md-page-logs-dropdown- Page logs
md-latest-diff- Latest edit diff
md-del-revisions- Deleted revisions
md-block- (User profile only) Block/unblock
md-nuke- (User profile only) Nuke
User dropdown list
user-md-logs-dropdown- User logs
user-md-contribs- User contributions
user-md-del-contribs- Deleted contributions
user-md-uploads- Uploads
user-md-abuselog- Abuse log
Changelog
- 9/15/2020 v0.1.4 - Small Fix relating to detecting whether a user is blocked
- 8/21/2020 v0.1.3 - Small fixes and international and UCP support
- 6/29/2020 v0.1.2 - Small additions relating to abuse filters
- 6/28/2020 v0.1.1 - Minor bug fixes related to subpages not appearing on userpages
- 6/22/2020 v0.1 - Script Created