Skip to content

Instantly share code, notes, and snippets.

@SergProduction
Created August 22, 2016 12:48
Show Gist options
  • Save SergProduction/252755272b908d36f786cb1f0dcad21b to your computer and use it in GitHub Desktop.
Save SergProduction/252755272b908d36f786cb1f0dcad21b to your computer and use it in GitHub Desktop.
var aud = document.getElementsByClassName('current_audio')[0].textContent;
var audio = aud;
var memmory = [];
memmory.push(audio);
setIterval(()=>{
aud = document.getElementsByClassName('current_audio')[0].textContent;
if(audio != aud){
memmory.push(aud);
audio = aud;
}
},5000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment