使用油猴脚本自动勾选“自动运行”(20200913更新)
先下好浏览器插件tampermonkey(油猴脚本),再新建一个脚本输入:
// ==UserScript==
// @name imooc勾选自动运行
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://*.imooc.com/code/*
// @grant none
// ==/UserScript==
//页面完全加载后运行
window.onload=function autorun() {
'use strict';
// Your code here...
var e = document.createEvent("MouseEvents");
e.initEvent("click", true, true);
document.getElementById("aotoruncheck").dispatchEvent(e);
};之后每次打开https://www.imooc.com/code/* 都会自动勾选了,勾选完输入个空格或者任何字符,右边的iframe就会渲染代码了,不会的建议多学习下怎么用油猴脚本~