Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zys8119/vconsole-hide
console调试器隐藏注入
https://github.com/zys8119/vconsole-hide
Last synced: 10 days ago
JSON representation
console调试器隐藏注入
- Host: GitHub
- URL: https://github.com/zys8119/vconsole-hide
- Owner: zys8119
- Created: 2023-08-28T06:05:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-12T06:04:32.000Z (about 1 year ago)
- Last Synced: 2023-09-12T08:55:49.433Z (about 1 year ago)
- Language: TypeScript
- Size: 253 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vconsole-hide
console调试器隐藏注入
## 调试器隐藏使用说明
> 默认注入到浏览器页面,通过鼠标或移动端touch连续点击开启,具体配置如下:
## 使用
main.ts
```typescript
import VConsoleHide from "vconsole-hide"
new VConsoleHide()
```浏览器中使用
```javascript
import "vconsole-hide/dist/browser.min.js"
new VConsoleHide()
```cdn使用
```html
new VConsoleHide()
```
## Options
```typescript
export interface Options {
vConsole:VConsoleOptions
// 限制移动端触发触点个数,默认4指同时点击max次数,即默认10次
touches:number
// 最大连续点击次数
max:number
// 是否启用
enable:boolean
// 启用自定义规则
isEnable:(this:ListenerClassType)=> boolean
// 开启后的有效期,默认一小时内,单位毫秒
validTime?:number
}
```