Pastebin got caught in the crossfire\!

This commit is contained in:
Jordan Bates 2013-04-30 05:40:20 -07:00
parent 878690131e
commit 23f1b9a1bf
4 changed files with 35 additions and 0 deletions

View File

@ -4305,6 +4305,16 @@
return JSON.parse(this.responseText).title;
}
}
},
pastebin: {
regExp: /.*(?:pastebin.com\/)([^#\&\?]*).*/,
el: function() {
var div;
return div = $.el('iframe', {
src: "http://pastebin.com/embed_iframe.php?i=" + this.name
});
}
}
},
embedder: function(a) {

View File

@ -4301,6 +4301,16 @@
return JSON.parse(this.responseText).title;
}
}
},
pastebin: {
regExp: /.*(?:pastebin.com\/)([^#\&\?]*).*/,
el: function() {
var div;
return div = $.el('iframe', {
src: "http://pastebin.com/embed_iframe.php?i=" + this.name
});
}
}
},
embedder: function(a) {

View File

@ -4304,6 +4304,16 @@
return JSON.parse(this.responseText).title;
}
}
},
pastebin: {
regExp: /.*(?:pastebin.com\/)([^#\&\?]*).*/,
el: function() {
var div;
return div = $.el('iframe', {
src: "http://pastebin.com/embed_iframe.php?i=" + this.name
});
}
}
},
embedder: function(a) {

View File

@ -199,6 +199,11 @@ Linkify =
api: -> "//soundcloud.com/oembed?show_artwork=false&&maxwidth=500px&show_comments=false&format=json&url=https://www.soundcloud.com/#{@name}"
text: -> JSON.parse(@responseText).title
pastebin:
regExp: /.*(?:pastebin.com\/)([^#\&\?]*).*/
el: ->
div = $.el 'iframe',
src: "http://pastebin.com/embed_iframe.php?i=#{@name}"
embedder: (a) ->
return [a] unless Conf['Embedding']