We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85db4ad commit f7671e9Copy full SHA for f7671e9
1 file changed
spotifuck-v6.user.js
@@ -213,9 +213,10 @@
213
// Add delay to allow Spotify's navigation to complete first
214
// Increased delay to ensure navigation starts before collapsing
215
setTimeout(() => {
216
- // Use button click to collapse so button state stays synchronized
217
- // Longer delay (300ms) ensures navigation has started and won't be cancelled
218
- if (window.lBtn) {
+ // Check if library is still expanded before collapsing
+ // This prevents unnecessary clicks if user manually collapsed it
+ if (window.lBtn && window.lBtn.getAttribute('aria-label') === 'Collapse Your Library') {
219
+ // Library is still expanded, collapse it
220
window.lBtn.click();
221
}
222
closeNowPlay();
0 commit comments