blob: 4291460051f4d3b0f1b38a59e4b91aee39c7cf23 (
plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
|
'\" t
.\" Title: swextreload
.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\" Date: 11/14/2023
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "SWEXTRELOAD" "1" "11/14/2023" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
swextreload \- Reload Chrome extensions
.SH "SYNOPSIS"
.sp
\fIswextreload\fR [options] EXTENSION_ID\&...
.SH "DESCRIPTION"
.sp
Reload Chrome extensions\&. All extension IDs given in positional arguments will be reloaded\&.
.sp
The \fI\-\-socket\-url\fR flag must be provided in order to connect to Chrome over the DevTools Protocol\&. It will resemble this:
.sp
.if n \{\
.RS 4
.\}
.nf
ws://127\&.0\&.0\&.1:55755/devtools/browser/208ae571\-d691\-4c98\-ad41\-3a15d507b656
.fi
.if n \{\
.RE
.\}
.sp
Chrome must be started with the \fI\-\-remote\-debugging\-port\fR flag to enable the DevTools Protocol, as well as the \fI\-\-silent\-debugger\-extension\-api\fR flag to allow debug access to extensions\&. For example:
.sp
.if n \{\
.RS 4
.\}
.nf
/Applications/Google\e Chrome\&.app/Contents/MacOS/Google\e Chrome \e
\-\-silent\-debugger\-extension\-api \e
\-\-remote\-debugging\-port=0 &
.fi
.if n \{\
.RE
.\}
.sp
The WebSocket URL will be printed to the console\&.
.SH "OPTIONS"
.PP
\-\-socket\-url=SOCKET_URL
.RS 4
The DevTools Protocol socket URL to connect to Chrome\&. This flag is required\&.
.RE
.PP
\-\-reload\-current\-tab
.RS 4
Reload the current Chrome tab\&.
.RE
.PP
\-\-debug
.RS 4
Print WebSocket debug messages to standard output\&.
.RE
.PP
\-h, \-\-help
.RS 4
Print usage help\&.
.RE
.PP
\-V, \-\-version
.RS 4
Print the program version\&.
.RE
|