Use Discord as the imagehost

This commit is contained in:
Jiiks 2016-03-31 10:31:17 +03:00
parent 3bf30d0790
commit 688998114e
1 changed files with 4 additions and 7 deletions

View File

@ -4,13 +4,10 @@ var agif = function () {};
agif.prototype.convert = function () {
$(".image canvas").each(function() {
var href = $(this).attr("href");
if(href != undefined) {
if(href.endsWith(".gif")) {
href = href.replace("http:", "https:");
$(this).replaceWith('<img src="'+href+'"></img>');
}
}
var src = $(this).attr("src");
if(src != undefined) {
$(this).replaceWith('<img src="'+src+'"></img>');
}
});
};