Remove copy button from breadcrumb actions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-03 14:45:31 -05:00
parent de12fbbeb2
commit d09c3c6bb7
2 changed files with 0 additions and 32 deletions
-23
View File
@@ -32,29 +32,6 @@ function toggleFontSize() {
}
}
// Copy page text to clipboard
function copyPageText() {
var btn = document.getElementById('copy-btn');
var article = document.querySelector('article');
if (!article) return;
var clone = article.cloneNode(true);
clone.querySelectorAll('.breadcrumb, .breadcrumb-actions, .sidenote, .marginnote, .toc, script, style, nav, button').forEach(function(el) {
el.remove();
});
var text = (clone.textContent || clone.innerText || '').trim();
navigator.clipboard.writeText(text).then(function() {
if (btn) {
btn.classList.add('copied');
setTimeout(function() {
btn.classList.remove('copied');
}, 1500);
}
});
}
// Bookmark functionality
function getBookmarks() {
try {
-9
View File
@@ -427,14 +427,6 @@
content: '■';
}
.breadcrumb-action-btn.copy-btn::before {
content: '⎘';
}
.breadcrumb-action-btn.copy-btn.copied::before {
content: '✓';
}
.breadcrumb-action-btn.bookmark-btn::before {
content: '☆';
}
@@ -1434,7 +1426,6 @@
<span class="breadcrumb-actions">
<button class="breadcrumb-action-btn font-toggle" title="Toggle large text" onclick="toggleFontSize()" aria-label="Toggle large text">A</button>
<button class="breadcrumb-action-btn speech-toggle" id="speech-toggle-btn" title="Read aloud" onclick="togglePageSpeech()" aria-label="Read page aloud"></button>
<button class="breadcrumb-action-btn copy-btn" id="copy-btn" title="Copy page text" onclick="copyPageText()" aria-label="Copy page text"></button>
<button class="breadcrumb-action-btn bookmark-btn" id="bookmark-btn" title="Bookmark this page" onclick="toggleBookmark()" aria-label="Bookmark this page"></button>
<button class="breadcrumb-action-btn dark-toggle" title="Toggle dark mode" onclick="toggleDarkMode()" aria-label="Toggle dark mode"></button>
</span>