🏠 Home 

Auto Convert after upload on ezgif

Automatically clicks the convert button after you upload an image to ezgif to convert

// ==UserScript==
// @name         Auto Convert after upload on ezgif
// @namespace    https://github.com/AbdurazaaqMohammed
// @version      1.0
// @author       Abdurazaaq Mohammed
// @description  Automatically clicks the convert button after you upload an image to ezgif to convert
// @match        https://ezgif.com/*/*.*
// @grant        none
// @homepage     https://github.com/AbdurazaaqMohammed/userscripts
// @license      The Unlicense
// @supportURL   https://github.com/AbdurazaaqMohammed/userscripts/issues
// ==/UserScript==
//check if the r###lt image is there. The convert button remains after converting so we can't just check for that
(function() {
'use strict';
setTimeout( function(){
const form = document.querySelector(".primary.btn"); //submit button
if(form) {
if(!document.querySelector("#output").querySelector('img')) {
form.click();
}
}}, 500);
})();