// ==UserScript== // @name Flash Accelerate // @namespace fengwn1997@163.com // @description 开启FlashPlayer硬件渲染加速 // @include * // @version 1.00 // @grant none // @downloadURL none // ==/UserScript== /* 只保证在firefox下正常运行 创意来自 gpu-accelerated-flash-player 扩展 只有当不存在 wmode 参数时才会把 wmode 设置为 gpu,也就是开启FlashPlayer硬件渲染 注释不可用 双斜杠,因为 location.assign函数 */ (function(){ location.assign("javascript:("+function(){ var wmodeValue = "gpu"; var force_direct_gpu = false;/*默认 false,强制 direct 到 gpu,即存在wmode 参数且值为 direct 时也强制开启硬件渲染*/ var objects = document.querySelectorAll("object"); var embeds = document.querySelectorAll("embed"); /*object element*/ var flag; if(objects.length > 0){ for(var i=0;i 0){ for(var i=0;i