diff --git a/Plugins/AutoPlayGifs.plugin.js b/Plugins/AutoPlayGifs.plugin.js
index 8514d84c..f7e3b8d5 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('');
+ }
});
};