您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Maximizes size of flash video while keeping aspect ratio
// ==UserScript== // @name Homestar Runner Fullscreen // @namespace http://baconbytes.me // @version 0.4 // @description Maximizes size of flash video while keeping aspect ratio // @author Grant Bacon <btnarg at the mail site google made> // @match http*://*homestarrunner.com/*.html // @grant // ==/UserScript== window.onresize = function() { var movieElement = document.querySelectorAll("embed")[0], width = document.body.clientWidth, height = document.body.clientHeight, aspectRatio = 550/400; // width/height taken from original element if (movieElement) { // 20 pixels are removed on each dimension to save space for footer movieElement.style.width = (height * aspectRatio - 20) + "px"; movieElement.style.height = (height - 20) + "px"; } }; window.onresize();