AILYZE Filter Script

Filter AILYZE website elements

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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

})();