使用油猴腳本自動勾選“自動運行”(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); };
之后每次打開http://idcbgp.cn/code/* 都會自動勾選了,勾選完輸入個空格或者任何字符,右邊的iframe就會渲染代碼了,不會的建議多學(xué)習(xí)下怎么用油猴腳本~
2020-09-13
//頁面完全加載后運行
var e = document.createEvent("MouseEvents");
e.initEvent("click", true, true);
document.getElementById("aotoruncheck").dispatchEvent(e);?
2020-09-13
其實還不完善,勾選了以后還要運行什么函數(shù)才能達到效果