Content deleted Content added
// Don't bold the title if it's already bolded. Fixes a "bold twice" bug. (publish.php) |
add support for option "window.draftCleanerPutInToolsMenu = true;" (publish.php) |
||
Line 134:
let sandbox = titleWithNamespaceAndUnderscores.match(/sandbox/i);
if ( ! [0, 118].includes(namespaceNumber) && ! sandbox ) return;
let menuID = window.draftCleanerPutInToolsMenu ? 'p-tb' : 'p-navigation';
// Add DraftCleaner to left sidebar
// Using two <li>s. One of the two is kept hidden at all times. This avoids having to delete #DraftCleanerLink, which would also delete the event listener.
$(
<li id="DraftCleaner">
<a id="DraftCleanerLink">Run DraftCleaner</a>
|