message: Remove `copy-file` from rendered pages
diff: @@ -45,26 +45,19 @@ function renderButton(): void {
  }
  }
  -function removeButton(): void {
  - select('.rgh-copy-file')?.remove();
  -}
  -
  function init(): void {
  delegate(document, '.rgh-copy-file', 'click', handleClick);
  -
  - if (select.exists(':is(.blob, .blob-wrapper) > .markdown-body')) {
  - delegate(document, '.rgh-md-source', 'rgh:view-markdown-source', renderButton);
  - delegate(document, '.rgh-md-source', 'rgh:view-markdown-rendered', removeButton);
  - } else {
  renderButton();
  }
  -}
  void features.add(__filebasename, {
  include: [
  pageDetect.isSingleFile,
  pageDetect.isGist,
  ],
  + exclude: [
  + () => !select.exists('table.highlight'), // Rendered page
  + ],
  deduplicate: '.rgh-copy-file', // #3945
  init,
  });
  