Use Discord as the imagehost
This commit is contained in:
parent
3bf30d0790
commit
688998114e
|
@ -4,12 +4,9 @@ var agif = function () {};
|
||||||
|
|
||||||
agif.prototype.convert = function () {
|
agif.prototype.convert = function () {
|
||||||
$(".image canvas").each(function() {
|
$(".image canvas").each(function() {
|
||||||
var href = $(this).attr("href");
|
var src = $(this).attr("src");
|
||||||
if(href != undefined) {
|
if(src != undefined) {
|
||||||
if(href.endsWith(".gif")) {
|
$(this).replaceWith('<img src="'+src+'"></img>');
|
||||||
href = href.replace("http:", "https:");
|
|
||||||
$(this).replaceWith('<img src="'+href+'"></img>');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue