恭喜你看到这里,下面教你使用游猴脚本自动勾选“自动运行”
先下好tampermonkey,再新建一个脚本输入:
```
// ==UserScript==
(function() {
'use strict';
// Your code here...
var boxes = document.getElementById("aotoruncheck");
boxes.checked=true;
})();
```
↓这部分改成
// @match *://*.imooc.com/code/*
其余的描述可以随便改
先下好tampermonkey,再新建一个脚本输入:
```
// ==UserScript==
(function() {
'use strict';
// Your code here...
var boxes = document.getElementById("aotoruncheck");
boxes.checked=true;
})();
```
↓这部分改成
// @match *://*.imooc.com/code/*
其余的描述可以随便改
2020-09-13
<script type="text/javascript">
function openWindow(){
var judge=confirm("是否打开?")
http://www.imooc.com/
if (judge==true){
var t=prompt("请输入网址?")
}
window.open(t,"_blank","width=400,height=500,menubar=no,toolbar=no")
}
</script>
请问这样对吗
function openWindow(){
var judge=confirm("是否打开?")
http://www.imooc.com/
if (judge==true){
var t=prompt("请输入网址?")
}
window.open(t,"_blank","width=400,height=500,menubar=no,toolbar=no")
}
</script>
请问这样对吗
function openWindow(){
var mymessage=confirm("确认打开网站吗?");
if(mymessage==true){
var url;
url=prompt("请输入你的网站:","http://www.imooc.com/");
if(url)
window.open(url,'_blank','width=400,height=500,toolbar=no,scrollbars=no');
}
}
var mymessage=confirm("确认打开网站吗?");
if(mymessage==true){
var url;
url=prompt("请输入你的网站:","http://www.imooc.com/");
if(url)
window.open(url,'_blank','width=400,height=500,toolbar=no,scrollbars=no');
}
}
function openWindow (){
confirm("是否打开新的窗口") == true ? window.open("http://" + prompt('请输入网址', 'www.imooc.com'), '_blank','width=400,height=500,menuber=no.toolbar=no') : null;
}
confirm("是否打开新的窗口") == true ? window.open("http://" + prompt('请输入网址', 'www.imooc.com'), '_blank','width=400,height=500,menuber=no.toolbar=no') : null;
}