Filecr Assistant Chrome Extension //top\\ [TOP]
observer.observe(document.body, { childList: true, subtree: true });
#searchBtn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102,126,234,0.4); } filecr assistant chrome extension
// Feedback feedbackBtn.addEventListener('click', () => { chrome.tabs.create({ url: 'https://github.com/yourusername/filecr-assistant/issues' }); }); }); chrome.runtime.onInstalled.addListener(() => { console.log('FileCR Assistant installed'); // Set default settings chrome.storage.sync.set({ enableNotifications: true, quickSearchDefault: true }); }); observer
.logo { width: 48px; height: 48px; margin-bottom: 8px; } { childList: true
// Show toast notification function showToast(message) { const toast = document.createElement('div'); toast.textContent = message; toast.style.cssText = position: fixed; bottom: 20px; right: 20px; background: #333; color: white; padding: 10px 20px; border-radius: 8px; z-index: 10000; font-size: 14px; animation: fadeInOut 2s ease; ;
// Add quick copy button const copyBtn = document.createElement('span'); copyBtn.textContent = ' 📋'; copyBtn.style.cursor = 'pointer'; copyBtn.style.fontSize = '12px'; copyBtn.style.marginLeft = '5px'; copyBtn.title = 'Copy download link'; copyBtn.addEventListener('click', (e) => { e.stopPropagation(); navigator.clipboard.writeText(link.href); showToast('Link copied to clipboard!'); }); link.parentNode?.insertBefore(copyBtn, link.nextSibling); } }); }