您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically set low graphics mode for Powerline.io
// ==UserScript== // @name Powerline.io Low Graphics Mode // @namespace http://tampermonkey.net/ // @version 1.5 // @description Automatically set low graphics mode for Powerline.io // @match https://powerline.io/* // @grant none // @license MIT // @run-at document-start // ==/UserScript== (function() { 'use strict'; // Function to set low graphics mode function setLowGraphicsMode() { // Check if we've already attempted to set low graphics mode if (localStorage.getItem('lq_script_run') !== 'true') { try { // Set low graphics mode localStorage.setItem('lq', 'true'); // Mark that the script has run localStorage.setItem('lq_script_run', 'true'); // Optional: Log confirmation console.log('Low Graphics Mode enabled for Powerline.io'); // Reload the page to apply changes window.location.reload(); } catch (error) { console.error('Error setting low graphics mode:', error); } } else { // Remove the flag to allow future runs if needed localStorage.removeItem('lq_script_run'); console.log('Low Graphics Mode script has already run'); } } // Run the function when the script loads if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', setLowGraphicsMode); } else { setLowGraphicsMode(); } })();