您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Since Flash seems to eat up all the memory, this will proactively close the tab and open a new one - giving it a clean slate.
// ==UserScript== // @name EngageMe.TV Flash Memory Protector // @namespace https://gf.qytechs.cn/users/57063 // @version 0.1.6 // @description Since Flash seems to eat up all the memory, this will proactively close the tab and open a new one - giving it a clean slate. // @author free21 // @match http://engageme.tv/* // @grant window.close // @grant GM_setValue // @grant GM_getValue // @require http://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js // ==/UserScript== (function() { var countMe = GM_getValue('countMe', 25); var enCount = 0; jwplayer().on('adComplete', function(event){ enCount++; console.log(enCount); if (enCount == countMe) { window.open(window.location.href); setTimeout(function() { window.close(); }, 1000); } }); $('<span style="border: 1px solid #d83a3d;padding: 5px;" title="Set this to the number of ads you want to see before the tab resets to clear memory."><input type="number" style="line-height:1px; width:50px;" size="3" id="countMe" value="" />?</span>').insertBefore('.category-holder'); $("#countMe").val(countMe); $("#countMe").change(function() { GM_setValue('countMe', $("#countMe").val()); if (enCount > countMe) { setTimeout(function() { location.reload(); }, 2000); $('#countMe').html('Resetting'); } countMe = $("#countMe").val(); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址