Skip to content

Instantly share code, notes, and snippets.

@zlatko-minev
Created January 3, 2025 19:34
Show Gist options
  • Save zlatko-minev/73e1e06b2f68c01c286f197b9166712d to your computer and use it in GitHub Desktop.
Save zlatko-minev/73e1e06b2f68c01c286f197b9166712d to your computer and use it in GitHub Desktop.
Cancel all google scholar alerts
// 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