Skip to content

Instantly share code, notes, and snippets.

@yangg
Created December 8, 2011 05:46
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 yangg/1446230 to your computer and use it in GitHub Desktop.
Save yangg/1446230 to your computer and use it in GitHub Desktop.
Media Logger
<!DOCTYPE HTML>
<html>
<script>
chrome.experimental.webRequest.onResponseStarted
.addListener(function(details) {
console.log(details.url);
}
, {urls: ["*://*/*.mp3", "*://*/*.mp4", "*://*/*.flv", "*://*/*.webm"]}
);
</script>
</html>
{
"name": "Media Logger",
"description": "log media url",
"version": "1.0.0",
"permissions": ["experimental"],
"background_page": "background.html"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment