AILYZE Filter Script

Filter AILYZE website elements

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         AILYZE Filter Script
// @namespace    tampermonkey.org
// @version      1.0
// @description  Filter AILYZE website elements
// @match        https://www.ailyze.com/ailyze/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Localizar o botão "Summarize"
    var summarizeButton = document.evaluate("//button[contains(text(),'Summarize')]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;

    // Verificar se o botão foi encontrado
    if (summarizeButton) {
        // Fazer algo com o botão, como adicionar um evento de clique
        summarizeButton.addEventListener('click', function() {
            // Lógica para tratar o clique no botão "Summarize"
            // ...
        });
    }

    // Localizar o elemento select com id "id_summary"
    var summarySelect = document.getElementById('id_summary');

    // Verificar se o elemento foi encontrado
    if (summarySelect) {
        // Fazer algo com o elemento select
        // ...
    }

    // Localizar o elemento select com id "id_language_options"
    var languageSelect = document.getElementById('id_language_options');

    // Verificar se o elemento foi encontrado
    if (languageSelect) {
        // Fazer algo com o elemento select
        // ...
    }

    // Localizar o elemento select com id "id_response_size"
    var responseSizeSelect = document.getElementById('id_response_size');

    // Verificar se o elemento foi encontrado
    if (responseSizeSelect) {
        // Fazer algo com o elemento select
        // ...
    }

    // Localizar o elemento main
    var mainElement = document.querySelector('body main');

    // Verificar se o elemento foi encontrado
    if (mainElement) {
        // Fazer algo com o elemento main
        // ...
    }

    // Outras localizações e tratamentos de erros podem ser adicionados conforme necessário

})();