Skip to content

Instantly share code, notes, and snippets.

@KOBA789
Created October 17, 2021 12:19
Show Gist options
  • Save KOBA789/80632c0d2ff855a6b64148a99709c95e to your computer and use it in GitHub Desktop.
Save KOBA789/80632c0d2ff855a6b64148a99709c95e to your computer and use it in GitHub Desktop.
http://maltinerecords.cs8.biz/ の試聴プレイヤーを dewplayer(Flash 製)から HTML5 Audio に置き換えるブックマークレット
[...document.querySelectorAll('object[data^="/dewplayer.swf"]')].forEach(dew=>{const a=new Audio(new URL(dew.data).searchParams.get('mp3'));a.controls=true;a.style.width='150px';a.style.height='20px';dew.replaceWith(a);})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment