Last active
September 15, 2023 11:59
-
-
Save kearlsaint/975db7aabc68c5dc763a7dfeeb6779fb to your computer and use it in GitHub Desktop.
Epidemic MP3 link listener | For personal use only!
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
/** | |
* Code Snippet/Gist | |
* Epidemic MP3 link listener | For personal use only! | |
* Use on epidemic website, paste on console | |
**/ | |
var mp3s = []; | |
var mp3_monitor = function() { | |
var res = performance.getEntriesByType("resource"); | |
for(let i=0; i < res.length; i++) { | |
var name = res[i].name; | |
if(name.indexOf("audiocdn") > -1) { | |
var hit = false; | |
for(let j=0; j<mp3s.length; j++) { | |
if(mp3s[j] == name) { | |
hit = true; | |
break; | |
} | |
} | |
if(!hit) { | |
console.log(name); | |
mp3s.push(name); | |
} | |
} | |
} | |
}; | |
var monitor_id = setInterval(mp3_monitor, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment