# 使用
油猴脚本为例:
打开油猴脚本 新建 脚本
在 @ require 引入 http://bigfoot.renxingdao.work/BigFoot.js
```
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @require http://bigfoot.renxingdao.work/BigFoot.js //引入脚本
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
})();
```
# 基本使用
```
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @require http://bigfoot.renxingdao.work/BigFoot.js //引入脚本
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
(function() {
'use strict';
new Bigfoot({
data: {},
async mounted() {
},
methods: {
}
})
})();
```
## data
存放 公共数据
```
data:{
name : "大脚脚本",
url : "http://bigfoot.renxingdao.work/BigFoot.js"
}
```
## async mounted()
钩子函数 运行取决于脚本引入时间 一般在网站加载完之后
```
async mounted() {
console.log("hello BigFoot")
},
```
## methods
方法定义
```
methods: {
consoleName(){
console.log("hello BigFoot")
}
},
```