Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Opera UserJS for NHK netradio ラジル★ラジル
(function(w,o,l){
if( /^http:\/\/www3.nhk.or.jp\/netradio\/player\//.test( l.href ) ) {
o.addEventListener( 'BeforeScript', function( e ) {
if ( /common.js/.test( e.element.src ) ) {
e.element.text = e.element.text.replace( /\(lis\);/g, "(lis.documentElement.innerHTML.replace( /<head>.+<\\\/head>/, '' ).replace( /<\\\/?body>/g, '' ));" );
}
}, false );
}
})( window, opera, location );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.