Skip to content

Instantly share code, notes, and snippets.

@idoo
Created September 2, 2019 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idoo/7e7cb27176b3553229f7a392a43b21d0 to your computer and use it in GitHub Desktop.
Save idoo/7e7cb27176b3553229f7a392a43b21d0 to your computer and use it in GitHub Desktop.
Yandex music free mode without popups
const popupID = 'idOfBlock';
const closeButtonID = 'closeButtonId';
const checkExist = setInterval(function() {
if (document.getElementById(popupID).length) {
document.getElementById(closeButtonID).click();
}
}, 1500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment