您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Reduces lag as much as possible by removing everything from the page except for the games themselves.
当前为
// ==UserScript== // @name Minimal Tetris Friends // @namespace minimaltetrisfriends // @description Reduces lag as much as possible by removing everything from the page except for the games themselves. // @include http://*tetrisfriends.com/games/Ultra/game.php* // @include http://*tetrisfriends.com/games/Sprint/game.php* // @include http://*tetrisfriends.com/games/Live/game.php* // @grant none // @run-at document-start // @version 23 June 2015 v3.01 // @author knux // ==/UserScript== addEventListener("DOMContentLoaded", function(){ var headStr = '<style> body { background: url(//tetrisow-a.akamaihd.net/data5_0_0_1/images/bg.jpg) repeat-x; font-family: "Trebuchet MS",Helvetica,Tahoma,Geneva,Verdana,Arial,sans-serif; font-size: 12px; color: #666; margin: 0; text-align: center; display: block; } object { margin: 20px; visibility: visible !important}* { margin: 0; padding: 0; outline: none; -moz-box-sizing: border-box; box-sizing: border-box; } </style>'; var bodyStr = $(contentFlash).clone().append("<param name=quality value=low></object>").find("param[name=wmode]").attr("value", "gpu").parent()[0].outerHTML; document.documentElement.innerHTML = '<head>' + headStr + '</head>' + '<body>' + bodyStr + '</body>'; var startScript = 'gamePrerollComplete();if(contentFlash.outerHTML.indexOf("object") == -1){renderFlash()};'; if( location.href.indexOf("/Live/game.php") != -1 ) startScript += ';var sArenaTimes = 5; function startArena(){if(contentFlash.TotalFrames){try{contentFlash.as3_prerollDone()}catch(err){}}else{setTimeout(startArena, 1000); return}; sArenaTimes--; setTimeout(startArena, 1000)}; startArena()'; document.body.appendChild( document.createElement("script") ).innerHTML = startScript; } )