Fast.com Auto Config

Auto-enable settings on Fast.com

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Fast.com Auto Config
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Auto-enable settings on Fast.com
// @author       Luis123456xp
// @match        https://fast.com/*
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Esperar a que el DOM esté completamente cargado
    window.addEventListener('load', function() {
        // Activar la opción "Always show all metrics"
        const alwaysShowMetricsCheckbox = document.querySelector('#always-show-metrics-input');
        if (alwaysShowMetricsCheckbox && !alwaysShowMetricsCheckbox.checked) {
            alwaysShowMetricsCheckbox.click();
        }

        // Activar la opción "Save config for this device"
        const persistConfigCheckbox = document.querySelector('#persist-config-input');
        if (persistConfigCheckbox && !persistConfigCheckbox.checked) {
            persistConfigCheckbox.click();
        }

        // Guardar la configuración automáticamente
        const applyConfigButton = document.querySelector('#apply-config');
        if (applyConfigButton) {
            applyConfigButton.click();
        }
    });

})();