MediaWiki:Gadget-readableRC-core.js: Difference between revisions

no edit summary
(Created page with "// <nowiki> // Formats the rows on Special:RecentChanges where all the information runs together // into three columns (page, diff/byte change, and user links) to make it more readable // // @author Iiii_I_I_I ;(function ($, mw) { function runReadableRC($content) { if (!$content.hasClass('mw-changeslist')) { return; } $content.addClass('gadget-rc-enabled'); let rows = document.querySelectorAll( '.mw-changeslist-src-mw-edit,' + '.mw-changeslist-src-mw...")
 
No edit summary
Tag: Reverted
Line 170:
row.querySelector('.mw-changeslist-groupdiff').textContent = 'diff';
}
// new mw.pages have a text node instead of a link
else {
row.querySelector('.mw-changeslist-links span:first-child').textContent = 'diff';
Line 179:
row.querySelector('.mw-changeslist-history').textContent = 'hist';
}
// nonexistent mw.pages (redirect-suppressed move or deleted) have a text node instead of a link
// @todo check for new classname/structure; no example rn
else {