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)
QuickLogs replaces links to log pages on Special:Contributions with pseudo-links that display the logs in a container on the page itself. The links are:
Additionally, if the user has the needed rights, these links will be included as well:
blockdeletedcontribsuserrights
Links that lead to a specific page (for instance, user rights management) will be striked through for differentiating from pseudo-links.
Installation
Configuration
QuickLogs also provides bindings you can use to add your own buttons to the toolbar. It fires MediaWiki hooks on state changes (QuickLogs.loaded and QuickLogs.render) for calling code if and when QuickLogs is available or has rendered. Here is an example of how to add a link to the end of the list:
mw.hook('QuickLogs.loaded').add(function(ql) {
// Remove any buttons that were previously added by the script
ql.addLink('yourScript', {
message: 'Hello, world!',
click: handler, // (optional) you can also set an href field
check: checkerFunction, // 7(optional) function that decides whether the link should appear, should return a boolean
attr: { // (optional) attributes for your link element
id: 'yourScript-link'
}
});
});
You can also add custom regular logs by setting the script name as the log type and either the by and title parameters. The third argument to the function can specify the index at which the link will be added:
mw.hook('QuickLogs.loaded').add(function(ql) {
ql.addLink('useravatar', {
message: 'avatar log',
by: ql.user
}, 4);
});