From 688998114e97cdede97b865912cb55651eab2c64 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Thu, 31 Mar 2016 10:31:17 +0300 Subject: [PATCH] Use Discord as the imagehost --- Plugins/AutoPlayGifs.plugin.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Plugins/AutoPlayGifs.plugin.js b/Plugins/AutoPlayGifs.plugin.js index 8514d84..f7e3b8d 100644 --- a/Plugins/AutoPlayGifs.plugin.js +++ b/Plugins/AutoPlayGifs.plugin.js @@ -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(''); - } - } + var src = $(this).attr("src"); + if(src != undefined) { + $(this).replaceWith(''); + } }); };