🏠 Home 

Greasy Fork is available in English.

Auto Convert after upload on ezgif

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


安装此脚本?
  1. // ==UserScript==
  2. // @name Auto Convert after upload on ezgif
  3. // @namespace https://github.com/AbdurazaaqMohammed
  4. // @version 1.0
  5. // @author Abdurazaaq Mohammed
  6. // @description Automatically clicks the convert button after you upload an image to ezgif to convert
  7. // @match https://ezgif.com/*/*.*
  8. // @grant none
  9. // @homepage https://github.com/AbdurazaaqMohammed/userscripts
  10. // @license The Unlicense
  11. // @supportURL https://github.com/AbdurazaaqMohammed/userscripts/issues
  12. // ==/UserScript==
  13. //check if the r###lt image is there. The convert button remains after converting so we can't just check for that
  14. (function() {
  15. 'use strict';
  16. setTimeout( function(){
  17. const form = document.querySelector(".primary.btn"); //submit button
  18. if(form) {
  19. if(!document.querySelector("#output").querySelector('img')) {
  20. form.click();
  21. }
  22. }}, 500);
  23. })();