Skip to content

Commit

Permalink
mdn: temporarily remove link to standalone play page
Browse files Browse the repository at this point in the history
Part of #975
  • Loading branch information
myfreeer committed Mar 3, 2024
1 parent 0da01f9 commit 467b9b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/mdn/process-html/process-remove-elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,14 @@ export const preProcessRemoveElements = ($: CheerioStatic): void => {
// https://github.com/website-local/mdn-local/issues/973
$('.baseline-indicator a.learn-more').parent().remove();
$('.baseline-indicator a.feedback-link').parent().remove();
// 20240303 temporarily remove link to standalone play page
// Part of https://github.com/website-local/mdn-local/issues/975
// Would be reverted if this fully implemented
$('a.top-level-entry.menu-link').each((i, el) => {
const e = $(el);
const href = e.attr('href');
if (href?.endsWith('/play') && e.text().trim() === 'Play') {
e.parent().remove();
}
});
};

0 comments on commit 467b9b7

Please sign in to comment.