Created
January 3, 2025 19:34
-
-
Save zlatko-minev/73e1e06b2f68c01c286f197b9166712d to your computer and use it in GitHub Desktop.
Cancel all google scholar alerts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This script automates clicking Google Scholar cancel alert and confirm buttons, designed for use in the Chrome developer console. It addresses situations where the page reloads after each click, requiring manual re-execution of the script. Here's how it works: | |
try{ | |
const cancelButtons = document.querySelectorAll('.gs_btn_flat') | |
cancelButtons[0].click(); | |
} catch (error) {} | |
document.querySelector('[name="cancel_alert_btn"]').click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment