Fast.com Auto Config

Auto-enable settings on Fast.com

  1. // ==UserScript==
  2. // @name Fast.com Auto Config
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Auto-enable settings on Fast.com
  6. // @author Luis123456xp
  7. // @match https://fast.com/*
  8. // @license MIT
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Esperar a que el DOM esté completamente cargado
  16. window.addEventListener('load', function() {
  17. // Activar la opción "Always show all metrics"
  18. const alwaysShowMetricsCheckbox = document.querySelector('#always-show-metrics-input');
  19. if (alwaysShowMetricsCheckbox && !alwaysShowMetricsCheckbox.checked) {
  20. alwaysShowMetricsCheckbox.click();
  21. }
  22.  
  23. // Activar la opción "Save config for this device"
  24. const persistConfigCheckbox = document.querySelector('#persist-config-input');
  25. if (persistConfigCheckbox && !persistConfigCheckbox.checked) {
  26. persistConfigCheckbox.click();
  27. }
  28.  
  29. // Guardar la configuración automáticamente
  30. const applyConfigButton = document.querySelector('#apply-config');
  31. if (applyConfigButton) {
  32. applyConfigButton.click();
  33. }
  34. });
  35.  
  36. })();