Language…
8 users online: anonimzwx, BWGLite, ElysRedField, fsvgm777, gothic251, Heitor Porfirio, mason, Murphmario - Guests: 108 - Bots: 128
Users: 64,667 (2,406 active)
Latest user: DarthHylian

Embeddable SPC player, updated! + new music section SPC player!

Last summer, I made a Greasemonkey script that allows you to embed an SPC player in forum posts and PMs on SMWC.

The major limitation of this SPC player is that it was limited to just files in the file bin. Well, no more! The SWF and the SPC/Zip files are now routed through a reverse proxy, allowing you to embed an SPC from any site that allows hotlinking, such as Dropbox.

To use it, install this Greasemonkey script. You will need either Greasemonkey or Tampermonkey. You will also need Flash Player.

To embed an SPC player, add the class embed-spc to any links pointing to an SPC file or a Zip file containing SPC files. Like this:

Code
<a class="embed-spc" href="http://bin.smwcentral.net/u/7478/smw.zip">Super Mario World OST</a>
<a class="embed-spc" href="http://bin.smwcentral.net/u/7478/yi.zip">Yoshi’s Island OST</a>
<a class="embed-spc" href="http://bin.smwcentral.net/u/7478/dkq.zip">Donkey Kong Country 2: Diddy Kong’s Quest OST</a>
<a class="embed-spc" href="https://www.dropbox.com/s/zhxir2guz09nwo6/mmx-16.spc?dl=1">Megaman X – Storm Eagle</a>


And you will get this:

Super Mario World OST
Yoshi’s Island OST
Donkey Kong Country 2: Diddy Kong’s Quest OST
Megaman X – Storm Eagle — As you can see, both Dropbox links and file bin links work now!

Because of the limitations of Flash and Javascript, only Zip files and unarchived SPCs are supported. SPCs in Zip files must be compressed using DEFLATE; uncompressed Zip files are also supported.

Edit: There is an updated SPC player script for the new music sections! See the next post to get it.

Edit 2: If you have had problems getting the new embeddable SPC player to work, uninstall it and then install the new version (same URL), and then clear your cache. I may have goofed up the first upload.
GradientToolLevelMusic UtilitySM64 Clean ROM verifierHQX VirtualDub FilterImoSPC2 (Alpha)Music Section SPC PlayerEmbeddable SPC Player for SMWCYouTube EmbedderJSRomcleanJS Address ConverterLazyHDMA
Update: I've rewritten the script for the new music section! If you ever installed the script I made for the old music section, it should be updated automatically. If not, click here to install it. It is separate from the SPC embedder for the forums.

The new music section is paginated, which means the page will reload every time you switch pages, getting rid of whatever you might have been listening to. To fix this, install this script and you will be able to switch between music section pages without losing what you're listening to. The entire page unfortunately will still be reloaded if you view a submission page.
GradientToolLevelMusic UtilitySM64 Clean ROM verifierHQX VirtualDub FilterImoSPC2 (Alpha)Music Section SPC PlayerEmbeddable SPC Player for SMWCYouTube EmbedderJSRomcleanJS Address ConverterLazyHDMA