Remove the Help link from Hop's shared top navigation
Hop-State: A_06FN6VDSDZSNJDKBSYY58K8 Hop-Proposal: R_06FN6VBZHCNQ6MQ1458WWR0 Hop-Task: T_06FN6TWMXN2S1VWJ42544S8 Hop-Attempt: AT_06FN6TWMXQEY87HJNX13SAR
This commit is contained in:
@@ -379,10 +379,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
function removeHelpNavigation() {
|
||||
for (const link of document.querySelectorAll('#navbar a[href*="docs.gitea.com"]')) {
|
||||
if (link.textContent.trim() === 'Help') link.remove();
|
||||
}
|
||||
}
|
||||
|
||||
function applyHopSemantics() {
|
||||
const brandLogo = document.querySelector('#navbar-logo img');
|
||||
if (brandLogo) brandLogo.src = brandLogo.src.replace(/\/img\/(?:logo|hop)\.svg(?:\?.*)?$/, '/img/hop.svg?v=4');
|
||||
replaceBrandImages();
|
||||
removeHelpNavigation();
|
||||
for (const root of document.querySelectorAll(semanticRoots)) replaceExactText(root);
|
||||
replaceAccessibleLabels(document);
|
||||
addPromptsNavigation();
|
||||
|
||||
Reference in New Issue
Block a user