您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fixes the applet initial size and resize on all browsers
// ==UserScript== // @author Endmost // @name polczat full frame fix // @namespace endmost // @description Fixes the applet initial size and resize on all browsers // @version 1.0.1 // @match http://www.polczat.com.pl/* // @match http://polczat.com.pl/* // ==/UserScript== function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } addGlobalStyle("html{ height: 100%; } body { height: 100%; margin: 0px; } applet { display: block; }"); var chatApplet = document.getElementsByTagName("applet")[0]; chatApplet.style.width = "100%"; chatApplet.style.height = "100%"; var chatParent = chatApplet.parentElement; chatParent.style.height = "100%"; // Misc changes, remove the ugly website title document.title = "polczat";