-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
metadata.yml
79 lines (69 loc) · 1.74 KB
/
metadata.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: 📸 Website screenshot
category: community
description: |
This plugin displays a screenshot from any website.
It can either show the full page or a portion restricted by a [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors).
examples:
default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.screenshot.svg
authors:
- lowlighter
supports:
- user
- organization
- repository
scopes: []
inputs:
plugin_screenshot:
description: |
Enable screenshot plugin
type: boolean
default: no
extras:
- metrics.run.puppeteer.scrapping
plugin_screenshot_title:
description: |
Title caption
type: string
default: Screenshot
plugin_screenshot_url:
description: |
Website URL
type: string
default: ""
example: https://metrics.lecoq.io
plugin_screenshot_selector:
description: |
CSS Selector
type: string
default: body
plugin_screenshot_mode:
description: |
Output mode
- `image`: screenshot of selected element
- `text`: keep [`innerText`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText) of selected element
- *⚠️ Any CSS style applied to text such as font size, weight or color will be removed*
type: string
default: image
values:
- image
- text
plugin_screenshot_viewport:
description: |
Viewport options
type: json
default: |
{
"width": 1280,
"height": 1280
}
plugin_screenshot_wait:
description: |
Wait time before taking screenshot (ms)
type: number
min: 0
default: 0
plugin_screenshot_background:
description: |
Background
type: boolean
default: yes