您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Forces all game sprites to look cleaner and nicer and cuter
当前为
// ==UserScript== // @name AWBW Pixel Pefector // @namespace https://awbw.amarriner.com/ // @version 1.2 // @description Forces all game sprites to look cleaner and nicer and cuter // @author twiggy_ // @match https://awbw.amarriner.com/*?games_id=* // @match https://awbw.amarriner.com/*?replays_id=* // @match https://awbw.amarriner.com/*?moveplanner* // @icon https://awbw.amarriner.com/favicon.ico // @license MIT // ==/UserScript== let pixelPerfect = { 'image-rendering': 'pixelated', }; // Game Map, and the root obj if (document.getElementById('gamemap') !== null) { Object.assign(document.getElementById('gamemap').style, pixelPerfect); } // Controls UI if (document.getElementById('map-controls-container') !== null) { Object.assign(document.getElementById('map-controls-container').style, pixelPerfect); } // DMG Calc if (document.getElementById('calculator') !== null) { Object.assign(document.getElementById('calculator').style, pixelPerfect); } // Weather canvas if (document.getElementById('weather-canvas') !== null) { Object.assign(document.getElementById('weather-canvas'), pixelPerfect); } // Tile info window let tileInfoWindow = document.getElementsByClassName('tile-info'); Array.prototype.forEach.call(tileInfoWindow, function(win) { win.style.imageRendering = 'pixelated'; }); // Player CO containers let playerContainers = document.getElementsByClassName('player-overview-container'); Array.prototype.forEach.call(playerContainers, function(container) { container.style.imageRendering = 'pixelated'; }); // Event screen COs let eventCOs = document.getElementsByClassName('event-cos'); Array.prototype.forEach.call(eventCOs, function(co) { co.style.imageRendering = 'pixelated'; });