您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fixes blue rectangles on Club Penguin and also makes it a little faster on some computers
// ==UserScript== // @name Club Penguin blue rectangle fix // @namespace http://fan-club-penguin.cz/ // @version 0.3 // @description Fixes blue rectangles on Club Penguin and also makes it a little faster on some computers // @author Lisured // @run-at document-start // @match http://play.clubpenguin.com/* // @grant none // ==/UserScript== document.addEventListener('DOMContentLoaded', function(event) { var rgb = window.getComputedStyle(document.body)['background-color'].match(/\d+/g); var hex = '#' + parseInt(rgb[0]).toString(16) + parseInt(rgb[1]).toString(16) + parseInt(rgb[2]).toString(16); var newRenderFunction = CP.FlashClient.prototype.render.toString().replace('"transparent"', '"direct", "bgcolor": "' + hex + '"'); CP.FlashClient.prototype.render = new Function(newRenderFunction.substring(newRenderFunction.indexOf('{')+1,newRenderFunction.lastIndexOf('}'))); });