Auto Convert after upload on ezgif

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

当前为 2024-03-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Auto Convert after upload on ezgif
  3. // @namespace https://github.com/AbdurazaaqMohammed
  4. // @version 1.0.1
  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.  
  14. (function() {
  15. 'use strict';
  16.  
  17. const form = document.querySelector(".primary.button"); //submit button
  18. if(form) {
  19. if(!document.querySelector("#output").querySelector('img')) { //check if the result image is there. The convert button remains after converting so we can't just check for that
  20. form.click();
  21. }
  22. }
  23. })();