Total Members Voted: 5
I spent way too long with this, over an hourI tried to make this but I think I've done enough for now
I spent way too long with this, over an hour
// ==UserScript==// @name Blockland Embedder for BeepBox// @namespace https://greasyfork.org/en/scripts/10233-too-many-embeds#beepbox// @author Steve5451 and dargereldren// @version 1.0.1// @description Embed links from BeepBox.co// @icon https://pbs.twimg.com/profile_images/2162768644/favicon_large.png// @require http://code.jquery.com/jquery-2.1.1.min.js// @include http://forum.blockland.us/*// ==/UserScript==$('a[href*="beepbox.co/#"],a[href*="beepbox.co/js.html#"]').each(function() { var beepboxId = $(this).attr('href').split('#')[1]; embedMedia(beepboxId, $(this), 'beepboxExpand');});function embedMedia(medId, thisItem, embedType) { thisItem.after(' <input type="button" value="Embed" class="embedMedia" id="' + embedType + '" expanded="false" medId="' + medId + '" /> ');}$(document).find(".embedMedia").click(function() { if ($(this).attr('expanded') == "false") { var thisId = $(this).attr('id'); if (thisId == 'beepboxExpand') { $(this).after('<div><iframe src="http://www.beepbox.co/embed.html#' + $(this).attr('medId') + '" frameborder="0" height="200" width="800"></iframe></div>'); } $(this).val("Remove") $(this).attr('expanded', 'true'); } else { $(this).next().remove(); $(this).val("Embed") $(this).attr('expanded', 'false'); }});
This uses the embed URL at http://beepbox.co/embed.html#<yoursongdata>, which means you'll be able to play the song, but you won't see the notes.That URL is also the only way to embed BeepBox songs on your website.