Mon Feb 02, 2015 4:10 pm
Mon Feb 02, 2015 7:16 pm
Mon Feb 02, 2015 7:58 pm
Mon Feb 02, 2015 8:05 pm
Mon Feb 02, 2015 8:14 pm
Mon Feb 02, 2015 8:20 pm
Mon Feb 02, 2015 8:48 pm
Mon Feb 02, 2015 8:53 pm
shaneanthonysounds wrote: Did this ever lead to anything https://twitter.com/marcuseoin ???
Mon Feb 02, 2015 9:14 pm
Mon Feb 02, 2015 9:40 pm
Tue Feb 03, 2015 12:39 am
Tue Feb 03, 2015 12:51 am
Tue Feb 03, 2015 1:38 am
shaneanthonysounds wrote:https://www.muffwiggler.com/forum/mw_embeds.jquery.js
Tue Feb 03, 2015 2:26 am
Mexicola wrote:Not calling this either way, but if this turns out to be in any way BOCset, or old tunes related then this has to go down as one of the longest embedded sleeper-promos ever, surely? Watching with interest...
Tue Feb 03, 2015 2:58 am
shaneanthonysounds wrote:Does this mean anything anyone?
var MWEmbeds={scindex:0,sc_regex:/\[soundcloud ([0-9a-z&;=_%":.\/\s]+)\]/gi,sc_regex_legacy:/(\[s\])(https?:\/)((?:\/[\w\.\-\s]+)+)(\[\/s\])/gi,bc_regex:/\[bandcamp ([0-9a-z\=\s\%]+)\]/g,bc_regex_legacy_albums:/\[bcalbum\]([0-9]+)\[\/bcalbum\]/g,bc_regex_legacy_tracks:/\[bctrack\]([0-9]+)\[\/bctrack\]/g,init:function(){var self=this;self.buttons();$('span.postbody').each(function(){var posthtml=$(this).html();posthtml=self.soundcloud(posthtml);posthtml=self.bandcamp(posthtml);$(this)[0].innerHTML=posthtml;});},soundcloud:function(posthtml){var self=this;var embeds=[];var matches=posthtml.match(self.sc_regex)||[];var matches_legacy=posthtml.match(self.sc_regex_legacy)||[];matches=matches.concat(matches_legacy);$.each(matches,function(i,match){var url=false;if(match.indexOf('=')>-1){var params=self.shortcode(match);url=params.url;}
else{url=self.shortcode(match);}
if(url){embeds.push({url:url,replace:match});}});$.each(embeds,function(i,embed){var id='scholder-'+ self.scindex;var html='<div id="'+ id+'" class="soundcloud pending">Loading Soundcloud...</div>';posthtml=posthtml.replace(embed.replace,html);self.scindex++;$.ajax({url:'//soundcloud.com/oembed?maxheight=166',dataType:'jsonp',data:{format:'js',url:embed.url},success:function(response){response.html=response.html.replace('visual=true','visual=false');$('#'+ id).removeClass('pending').html(response.html);}});});return posthtml;},bandcamp:function(posthtml){var self=this;var embeds=[];var matches=posthtml.match(self.bc_regex)||[];var matches_legacy_albums=posthtml.match(self.bc_regex_legacy_albums)||[];var matches_legacy_tracks=posthtml.match(self.bc_regex_legacy_tracks)||[];matches=matches.concat(matches_legacy_albums,matches_legacy_tracks);$.each(matches,function(i,match){var album=track=false;if(match.indexOf('=')>-1){var params=self.shortcode(match);var album=params.album,track=params.track;}
else{var id=self.shortcode(match);var album=track=null;if(match.indexOf('album')>-1){album=id;}
else{track=id;}}
embeds.push({album:album,track:track,replace:match});});$.each(embeds,function(i,embed){if(embed.album){var url='//bandcamp.com/EmbeddedPlayer/album='+ embed.album+'/size=medium';}
else{var url='//bandcamp.com/EmbeddedPlayer/track='+ embed.track+'/size=medium';}
var html='<div class="bandcamp"><iframe style="border:0;width:100%;height:120px;" src="'+ url+'" seamless></iframe></div>';posthtml=posthtml.replace(embed.replace,html);});return posthtml;},shortcode:function(string){if(string.indexOf('=')>-1){var parts={};var split=string.replace(']','').split(' ');for(var s=1;s<split.length;s++){var key=split.substr(0,split[s].indexOf('='));var val=split[s].substr(split[s].indexOf('=')+ 1).replace(/\"/g,'');parts[key]=val;}
return parts;}
else{var s=string.indexOf(']')+ 1;return string.substr(s,string.indexOf('[',s)- s);}},buttons:function(){$('input[type="button"]').each(function(i,button){if($(this).val()=='Soundcloud'){$(this)[0].onclick=null;$(this).on('click',function(){alert('1) Click the Share link on your Soundcloud track'+'\n'
+'2) Copy the Wordpress code and paste it into your post.'+'\n\n'
+'Alternatively, you may use the old BBcode - [s]https://soundcloud.com/you/track');});$('<input type="button" value="Bandcamp" />').on('click',function(){alert('1) Click the Share/Embed link on your Bandcamp album or track'+'\n'
+'2) Select any layout, and then wordpress.com (below the embed code textbox)'+'\n'
+'3) Copy the embed code and paste it into your post.');}).appendTo($(this).parent());}});}};$(document).ready(function(){MWEmbeds.init();});
Tue Feb 03, 2015 3:07 am
aoc wrote:shaneanthonysounds wrote:Does this mean anything anyone?
var MWEmbeds={scindex:0,sc_regex:/\[soundcloud ([0-9a-z&;=_%":.\/\s]+)\]/gi,sc_regex_legacy:/(\[s\])(https?:\/)((?:\/[\w\.\-\s]+)+)(\[\/s\])/gi,bc_regex:/\[bandcamp ([0-9a-z\=\s\%]+)\]/g,bc_regex_legacy_albums:/\[bcalbum\]([0-9]+)\[\/bcalbum\]/g,bc_regex_legacy_tracks:/\[bctrack\]([0-9]+)\[\/bctrack\]/g,init:function(){var self=this;self.buttons();$('span.postbody').each(function(){var posthtml=$(this).html();posthtml=self.soundcloud(posthtml);posthtml=self.bandcamp(posthtml);$(this)[0].innerHTML=posthtml;});},soundcloud:function(posthtml){var self=this;var embeds=[];var matches=posthtml.match(self.sc_regex)||[];var matches_legacy=posthtml.match(self.sc_regex_legacy)||[];matches=matches.concat(matches_legacy);$.each(matches,function(i,match){var url=false;if(match.indexOf('=')>-1){var params=self.shortcode(match);url=params.url;}
else{url=self.shortcode(match);}
if(url){embeds.push({url:url,replace:match});}});$.each(embeds,function(i,embed){var id='scholder-'+ self.scindex;var html='<div id="'+ id+'" class="soundcloud pending">Loading Soundcloud...</div>';posthtml=posthtml.replace(embed.replace,html);self.scindex++;$.ajax({url:'//soundcloud.com/oembed?maxheight=166',dataType:'jsonp',data:{format:'js',url:embed.url},success:function(response){response.html=response.html.replace('visual=true','visual=false');$('#'+ id).removeClass('pending').html(response.html);}});});return posthtml;},bandcamp:function(posthtml){var self=this;var embeds=[];var matches=posthtml.match(self.bc_regex)||[];var matches_legacy_albums=posthtml.match(self.bc_regex_legacy_albums)||[];var matches_legacy_tracks=posthtml.match(self.bc_regex_legacy_tracks)||[];matches=matches.concat(matches_legacy_albums,matches_legacy_tracks);$.each(matches,function(i,match){var album=track=false;if(match.indexOf('=')>-1){var params=self.shortcode(match);var album=params.album,track=params.track;}
else{var id=self.shortcode(match);var album=track=null;if(match.indexOf('album')>-1){album=id;}
else{track=id;}}
embeds.push({album:album,track:track,replace:match});});$.each(embeds,function(i,embed){if(embed.album){var url='//bandcamp.com/EmbeddedPlayer/album='+ embed.album+'/size=medium';}
else{var url='//bandcamp.com/EmbeddedPlayer/track='+ embed.track+'/size=medium';}
var html='<div class="bandcamp"><iframe style="border:0;width:100%;height:120px;" src="'+ url+'" seamless></iframe></div>';posthtml=posthtml.replace(embed.replace,html);});return posthtml;},shortcode:function(string){if(string.indexOf('=')>-1){var parts={};var split=string.replace(']','').split(' ');for(var s=1;s<split.length;s++){var key=split.substr(0,split[s].indexOf('='));var val=split[s].substr(split[s].indexOf('=')+ 1).replace(/\"/g,'');parts[key]=val;}
return parts;}
else{var s=string.indexOf(']')+ 1;return string.substr(s,string.indexOf('[',s)- s);}},buttons:function(){$('input[type="button"]').each(function(i,button){if($(this).val()=='Soundcloud'){$(this)[0].onclick=null;$(this).on('click',function(){alert('1) Click the Share link on your Soundcloud track'+'\n'
+'2) Copy the Wordpress code and paste it into your post.'+'\n\n'
+'Alternatively, you may use the old BBcode - [s]https://soundcloud.com/you/track');});$('<input type="button" value="Bandcamp" />').on('click',function(){alert('1) Click the Share/Embed link on your Bandcamp album or track'+'\n'
+'2) Select any layout, and then wordpress.com (below the embed code textbox)'+'\n'
+'3) Copy the embed code and paste it into your post.');}).appendTo($(this).parent());}});}};$(document).ready(function(){MWEmbeds.init();});
LOL, this is just a bunch of javascript.
Tue Feb 03, 2015 6:14 am
shaneanthonysounds wrote:aoc wrote:shaneanthonysounds wrote:Does this mean anything anyone?
var MWEmbeds={scindex:0,sc_regex:/\[soundcloud ([0-9a-z&;=_%":.\/\s]+)\]/gi,sc_regex_legacy:/(\[s\])(https?:\/)((?:\/[\w\.\-\s]+)+)(\[\/s\])/gi,bc_regex:/\[bandcamp ([0-9a-z\=\s\%]+)\]/g,bc_regex_legacy_albums:/\[bcalbum\]([0-9]+)\[\/bcalbum\]/g,bc_regex_legacy_tracks:/\[bctrack\]([0-9]+)\[\/bctrack\]/g,init:function(){var self=this;self.buttons();$('span.postbody').each(function(){var posthtml=$(this).html();posthtml=self.soundcloud(posthtml);posthtml=self.bandcamp(posthtml);$(this)[0].innerHTML=posthtml;});},soundcloud:function(posthtml){var self=this;var embeds=[];var matches=posthtml.match(self.sc_regex)||[];var matches_legacy=posthtml.match(self.sc_regex_legacy)||[];matches=matches.concat(matches_legacy);$.each(matches,function(i,match){var url=false;if(match.indexOf('=')>-1){var params=self.shortcode(match);url=params.url;}
else{url=self.shortcode(match);}
if(url){embeds.push({url:url,replace:match});}});$.each(embeds,function(i,embed){var id='scholder-'+ self.scindex;var html='<div id="'+ id+'" class="soundcloud pending">Loading Soundcloud...</div>';posthtml=posthtml.replace(embed.replace,html);self.scindex++;$.ajax({url:'//soundcloud.com/oembed?maxheight=166',dataType:'jsonp',data:{format:'js',url:embed.url},success:function(response){response.html=response.html.replace('visual=true','visual=false');$('#'+ id).removeClass('pending').html(response.html);}});});return posthtml;},bandcamp:function(posthtml){var self=this;var embeds=[];var matches=posthtml.match(self.bc_regex)||[];var matches_legacy_albums=posthtml.match(self.bc_regex_legacy_albums)||[];var matches_legacy_tracks=posthtml.match(self.bc_regex_legacy_tracks)||[];matches=matches.concat(matches_legacy_albums,matches_legacy_tracks);$.each(matches,function(i,match){var album=track=false;if(match.indexOf('=')>-1){var params=self.shortcode(match);var album=params.album,track=params.track;}
else{var id=self.shortcode(match);var album=track=null;if(match.indexOf('album')>-1){album=id;}
else{track=id;}}
embeds.push({album:album,track:track,replace:match});});$.each(embeds,function(i,embed){if(embed.album){var url='//bandcamp.com/EmbeddedPlayer/album='+ embed.album+'/size=medium';}
else{var url='//bandcamp.com/EmbeddedPlayer/track='+ embed.track+'/size=medium';}
var html='<div class="bandcamp"><iframe style="border:0;width:100%;height:120px;" src="'+ url+'" seamless></iframe></div>';posthtml=posthtml.replace(embed.replace,html);});return posthtml;},shortcode:function(string){if(string.indexOf('=')>-1){var parts={};var split=string.replace(']','').split(' ');for(var s=1;s<split.length;s++){var key=split.substr(0,split[s].indexOf('='));var val=split[s].substr(split[s].indexOf('=')+ 1).replace(/\"/g,'');parts[key]=val;}
return parts;}
else{var s=string.indexOf(']')+ 1;return string.substr(s,string.indexOf('[',s)- s);}},buttons:function(){$('input[type="button"]').each(function(i,button){if($(this).val()=='Soundcloud'){$(this)[0].onclick=null;$(this).on('click',function(){alert('1) Click the Share link on your Soundcloud track'+'\n'
+'2) Copy the Wordpress code and paste it into your post.'+'\n\n'
+'Alternatively, you may use the old BBcode - [s]https://soundcloud.com/you/track');});$('<input type="button" value="Bandcamp" />').on('click',function(){alert('1) Click the Share/Embed link on your Bandcamp album or track'+'\n'
+'2) Select any layout, and then wordpress.com (below the embed code textbox)'+'\n'
+'3) Copy the embed code and paste it into your post.');}).appendTo($(this).parent());}});}};$(document).ready(function(){MWEmbeds.init();});
LOL, this is just a bunch of javascript.
And also why I should just stick to making music;-) I realized this after I posted it haha, I just read BC not thinking BandCamp. That fucking owl has BC too dude lol!
Tue Feb 03, 2015 7:13 am
Tue Feb 03, 2015 7:17 am
Valotonin wrote:This whole code thing, man. Since TH people have been pretty obsessive over nothing.
Do you think boards enjoy watching this?
Do you think that the message lies within the fact that they are trying to display the nature of the internet basically facilitating delusions. Its like everyone has dysfunctional dopamine responses when they are presented with technology. I try not to make every post about how evil the internet is but it always kind of drifts in that direction. I am an obsessive, too.
Tue Feb 03, 2015 7:55 am
shaneanthonysounds wrote:Valotonin wrote:This whole code thing, man. Since TH people have been pretty obsessive over nothing.
Do you think boards enjoy watching this?
Do you think that the message lies within the fact that they are trying to display the nature of the internet basically facilitating delusions. Its like everyone has dysfunctional dopamine responses when they are presented with technology. I try not to make every post about how evil the internet is but it always kind of drifts in that direction. I am an obsessive, too.
No, I think they hate it! I think the fans are pushing them away with all this shit!