AILYZE Filter Script

Filter AILYZE website elements

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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

})();