Greasy Fork

GGn PTPImg All

try to take over the world :)

目前为 2022-09-10 提交的版本。查看 最新版本

// ==UserScript==
// @name         GGn PTPImg All
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  try to take over the world :)
// @author       BestGrapeLeaves
// @match        https://gazellegames.net/upload.php*
// @icon         https://cdn.dribbble.com/users/791530/screenshots/14040547/06-palette-2_fluent-1_4x.jpg
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    const button = $('<input type="button" value="PTPImg All"/>');
    button.click(() => {
        $('input[type="button"][value="PTPImg It"]').each(function() {
            if(!$(this).parent().find('input').first().val()) {
                return;
            }
            $(this).raw().onclick();
        });
    });
    $('#image_block').prepend(button, '<br>');
})();