0) { document.onfocusout = function () { return true; } ..._美和易思学习脚本最新">
赞
踩
Moot刷视频网页绑定焦点
if (!-[1,] && !window.XMLHttpRequest || navigator.userAgent.indexOf("MSIE 8.0") > 0) {
document.onfocusout = function () {
return true;
}
} else {
window.onblur = function () {
return true;
}
}
F12 console里面走一波就可以用了
或者油猴添加新脚本
自己去网上找资源下载
// ==UserScript== // @name 慕课 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 美和易思 慕课 保留焦点 // @author mutou // @match http://www.51moot.net/* // @grant none // @include http://www.51moot.net/* // ==/UserScript== (function() { if (!-[1,] && !window.XMLHttpRequest || navigator.userAgent.indexOf("MSIE 8.0") > 0) { document.onfocusout = function () { return true; } } else { window.onblur = function () { return true; } } })();
油猴里面新建一个脚本 把上面的代码保存进去 就不需要每次打开自己手动去console里面粘贴了
核心代码就那么两行 可以学习一下
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。