Hides blueprints and macros from wizards or autocomplete on the current page.
The bookmarklet removes tools from the page currently shown in the browser.
The projectdoc tools (doctypes and macros) are removed in the following locations:
The bookmarklet removes these elements provided by the projectdoc Toolbox, but the script can be easily adjusted to remove tools from other apps.
if (AJS) { AJS.toInit(function () { function hideElements($element) { if ($element) { $element.css("display", "none"); } } function hideSpaceBlueprints() { const $templateElements = AJS.$('#create-dialog .templates .template[data-blueprint-module-complete-key*="projectdoc"][data-create-result="space"]'); hideElements($templateElements); } function hidePageBlueprints() { const $templateElements = AJS.$('#create-dialog .templates .template[data-blueprint-module-complete-key*="projectdoc"]:not([data-create-result="space"])'); hideElements($templateElements); } function hideMacros() { const $macroElements = AJS.$('#select-macro-page .dialog-page-body .macro-list-item[id*="projectdoc"]'); hideElements($macroElements); } function hideAutocompleteMacros() { const $macroElements = AJS.$('li>a[class*="autocomplete-macro-projectdoc"]'); if ($macroElements) { $macroElements.parent().css("display", "none"); } } hideSpaceBlueprints(); hidePageBlueprints(); hideMacros(); hideAutocompleteMacros(); }); }
The following screenshots show the bookmarklet in action.