Skip to content

Instantly share code, notes, and snippets.

@to
Created December 20, 2010 09:14
Show Gist options
  • Save to/748186 to your computer and use it in GitHub Desktop.
Save to/748186 to your computer and use it in GitHub Desktop.
rbma.js
loadPolicies.push(function(contentType, contentLocation, requestOrigin, context, mimeTypeGuess, extra){
try{
var url = contentLocation.spec;
if(contentType == IContentPolicy.TYPE_DOCUMENT)
return false;
if(/\/safestream\.php/.test(url)){
if(url.match('rbmaradio.de'))
url = url.replace('rbmaradio.de', 'archive1.rbmastream.net');
addTab(url);
return true;
}
}catch(e){}
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment