brave-real-playwright-core 1.57.0-patch.2 → 1.57.0-patch.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -202
- package/README.md +2 -2
- package/advanced-stealth.js +78 -54
- package/lib/utilsBundleImpl/xdg-open +0 -0
- package/package.json +13 -13
- package/stealth-injection.js +77 -53
package/LICENSE
CHANGED
|
@@ -1,202 +1,202 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Portions Copyright (c) Microsoft Corporation.
|
|
190
|
-
Portions Copyright 2017 Google Inc.
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Portions Copyright (c) Microsoft Corporation.
|
|
190
|
+
Portions Copyright 2017 Google Inc.
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# 🦁 brave-real-playwright-core v1.57.0-patch.
|
|
1
|
+
# 🦁 brave-real-playwright-core v1.57.0-patch.15
|
|
2
2
|
|
|
3
3
|
**Based on Playwright Core v1.57.0**
|
|
4
4
|
|
|
@@ -48,7 +48,7 @@ await page.goto('https://bot-detector.rebrowser.net/');
|
|
|
48
48
|
|
|
49
49
|
- **playwright-core**: v1.57.0
|
|
50
50
|
- **rebrowser-patches**: Latest stealth optimizations
|
|
51
|
-
- **Brave optimization**: v1.57.0-patch.
|
|
51
|
+
- **Brave optimization**: v1.57.0-patch.15
|
|
52
52
|
|
|
53
53
|
## 🔗 Links
|
|
54
54
|
|
package/advanced-stealth.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
timingRange: '1-5ms',
|
|
6
6
|
stealthLevel: 'professional',
|
|
7
7
|
engine: 'playwright',
|
|
8
|
-
braveVersion: '1.57.0-patch.
|
|
8
|
+
braveVersion: '1.57.0-patch.15',
|
|
9
9
|
features: {
|
|
10
10
|
performanceOptimization: true,
|
|
11
11
|
navigatorSpoofing: true,
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
return Promise.resolve({
|
|
72
72
|
ok: true,
|
|
73
73
|
json: () => Promise.resolve([{
|
|
74
|
-
version: '
|
|
74
|
+
version: '144.0.7559.59',
|
|
75
75
|
time: new Date().toISOString()
|
|
76
76
|
}])
|
|
77
77
|
});
|
|
@@ -175,18 +175,9 @@
|
|
|
175
175
|
configurable: true
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
-
//
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
delete window.chrome.runtime;
|
|
182
|
-
}
|
|
183
|
-
if (window.chrome.loadTimes) {
|
|
184
|
-
delete window.chrome.loadTimes;
|
|
185
|
-
}
|
|
186
|
-
if (window.chrome.csi) {
|
|
187
|
-
delete window.chrome.csi;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
178
|
+
// NOTE: Do NOT delete window.chrome.runtime - ReCaptcha V3 needs it!
|
|
179
|
+
// Keeping chrome object intact for better ReCaptcha scores
|
|
180
|
+
// Previously this code was deleting chrome.runtime which caused low ReCaptcha scores
|
|
190
181
|
|
|
191
182
|
// Spoof permissions API
|
|
192
183
|
if (navigator.permissions && navigator.permissions.query) {
|
|
@@ -480,29 +471,15 @@
|
|
|
480
471
|
|
|
481
472
|
// 4. BULLETPROOF USER AGENT STEALTH
|
|
482
473
|
|
|
483
|
-
// BULLETPROOF User Agent spoofing -
|
|
474
|
+
// BULLETPROOF User Agent spoofing - DYNAMIC VERSION: 144.0.7559.59
|
|
484
475
|
(function() {
|
|
485
|
-
// 🦁
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
const isChromeOptimized = process.env.REBROWSER_STEALTH_CHROME_OPTIMIZATIONS === '1' ||
|
|
489
|
-
process.env.REBROWSER_AUTO_BROWSER_TYPE === 'chrome';
|
|
476
|
+
// 🦁 DYNAMIC CHROME VERSION - Auto-synced with latest stable
|
|
477
|
+
const INJECTED_CHROME_VERSION = '144.0.7559.59';
|
|
478
|
+
const INJECTED_MAJOR_VERSION = '144';
|
|
490
479
|
|
|
491
|
-
//
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
// Brave-optimized user agent (maximum stealth)
|
|
495
|
-
bulletproofUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.59 Safari/537.36';
|
|
496
|
-
console.log('[🦁 BRAVE-STEALTH] Brave browser optimizations active - maximum stealth mode');
|
|
497
|
-
} else if (isChromeOptimized) {
|
|
498
|
-
// Chrome-optimized user agent
|
|
499
|
-
bulletproofUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.59 Safari/537.36';
|
|
500
|
-
console.log('[🔵 CHROME-STEALTH] Chrome browser optimizations active');
|
|
501
|
-
} else {
|
|
502
|
-
// Default fallback user agent
|
|
503
|
-
bulletproofUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.59 Safari/537.36';
|
|
504
|
-
console.log('[⚙️ DEFAULT-STEALTH] Using default browser stealth mode');
|
|
505
|
-
}
|
|
480
|
+
// Dynamic user agent with latest Chrome version
|
|
481
|
+
const bulletproofUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.59 Safari/537.36';
|
|
482
|
+
console.log('[🎯 DYNAMIC-STEALTH] Using Chrome version: ' + INJECTED_CHROME_VERSION);
|
|
506
483
|
|
|
507
484
|
// COMPLETELY override navigator.userAgent
|
|
508
485
|
Object.defineProperty(navigator, 'userAgent', {
|
|
@@ -518,9 +495,6 @@
|
|
|
518
495
|
enumerable: true
|
|
519
496
|
});
|
|
520
497
|
|
|
521
|
-
|
|
522
|
-
// BULLETPROOF platform detection
|
|
523
|
-
|
|
524
498
|
// BULLETPROOF platform detection
|
|
525
499
|
Object.defineProperty(navigator, 'platform', {
|
|
526
500
|
get: () => 'Win32',
|
|
@@ -553,23 +527,31 @@
|
|
|
553
527
|
});
|
|
554
528
|
})();
|
|
555
529
|
|
|
556
|
-
// Enhanced userAgentData with getHighEntropyValues method -
|
|
530
|
+
// Enhanced userAgentData with getHighEntropyValues method - DYNAMIC VERSION
|
|
557
531
|
(function() {
|
|
532
|
+
const INJECTED_CHROME_VERSION = '144.0.7559.59';
|
|
533
|
+
const INJECTED_MAJOR_VERSION = '144';
|
|
534
|
+
|
|
558
535
|
// Aggressively delete existing userAgentData
|
|
559
536
|
try {
|
|
560
|
-
delete
|
|
561
|
-
|
|
537
|
+
// Try to delete from prototype
|
|
538
|
+
if (Navigator.prototype.userAgentData) {
|
|
539
|
+
delete Navigator.prototype.userAgentData;
|
|
540
|
+
}
|
|
541
|
+
} catch (e) { console.log('[stealth] Failed to delete proto userAgentData:', e.message); }
|
|
542
|
+
|
|
562
543
|
try {
|
|
563
|
-
|
|
544
|
+
// Try to delete from instance
|
|
545
|
+
if (navigator.hasOwnProperty('userAgentData') || 'userAgentData' in navigator) {
|
|
564
546
|
delete navigator.userAgentData;
|
|
565
547
|
}
|
|
566
|
-
} catch {}
|
|
548
|
+
} catch (e) { console.log('[stealth] Failed to delete instance userAgentData:', e.message); }
|
|
567
549
|
|
|
568
550
|
const userAgentDataInstance = {
|
|
569
551
|
brands: [
|
|
570
552
|
{ brand: 'Not_A Brand', version: '24' },
|
|
571
|
-
{ brand: 'Chromium', version:
|
|
572
|
-
{ brand: 'Google Chrome', version:
|
|
553
|
+
{ brand: 'Chromium', version: INJECTED_MAJOR_VERSION },
|
|
554
|
+
{ brand: 'Google Chrome', version: INJECTED_MAJOR_VERSION }
|
|
573
555
|
],
|
|
574
556
|
mobile: false,
|
|
575
557
|
platform: 'Windows',
|
|
@@ -579,15 +561,15 @@
|
|
|
579
561
|
bitness: '64',
|
|
580
562
|
brands: userAgentDataInstance.brands,
|
|
581
563
|
fullVersionList: [
|
|
582
|
-
{ brand: 'Not_A Brand', version:
|
|
583
|
-
{ brand: 'Chromium', version:
|
|
584
|
-
{ brand: 'Google Chrome', version:
|
|
564
|
+
{ brand: 'Not_A Brand', version: INJECTED_CHROME_VERSION },
|
|
565
|
+
{ brand: 'Chromium', version: INJECTED_CHROME_VERSION },
|
|
566
|
+
{ brand: 'Google Chrome', version: INJECTED_CHROME_VERSION }
|
|
585
567
|
],
|
|
586
568
|
mobile: false,
|
|
587
569
|
model: '',
|
|
588
570
|
platform: 'Windows',
|
|
589
571
|
platformVersion: '10.0.0',
|
|
590
|
-
uaFullVersion:
|
|
572
|
+
uaFullVersion: INJECTED_CHROME_VERSION
|
|
591
573
|
});
|
|
592
574
|
},
|
|
593
575
|
toJSON: function() {
|
|
@@ -599,11 +581,53 @@
|
|
|
599
581
|
}
|
|
600
582
|
};
|
|
601
583
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
584
|
+
try {
|
|
585
|
+
// Define on INSTANCE directly (more reliable)
|
|
586
|
+
Object.defineProperty(navigator, 'userAgentData', {
|
|
587
|
+
get: () => userAgentDataInstance,
|
|
588
|
+
configurable: false,
|
|
589
|
+
enumerable: true
|
|
590
|
+
});
|
|
591
|
+
console.log('[stealth] userAgentData injected successfully on navigator instance');
|
|
592
|
+
} catch (e) {
|
|
593
|
+
console.error('[stealth] FAILED to inject userAgentData on instance:', e.message);
|
|
594
|
+
|
|
595
|
+
// Fallback to prototype
|
|
596
|
+
try {
|
|
597
|
+
Object.defineProperty(Navigator.prototype, 'userAgentData', {
|
|
598
|
+
get: () => userAgentDataInstance,
|
|
599
|
+
configurable: false,
|
|
600
|
+
enumerable: true
|
|
601
|
+
});
|
|
602
|
+
console.log('[stealth] userAgentData injected successfully on Navigator.prototype');
|
|
603
|
+
} catch (e2) {
|
|
604
|
+
console.error('[stealth] FAILED to inject userAgentData on prototype:', e2.message);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
// AGGRESSIVE: Proxy navigator if possible
|
|
609
|
+
try {
|
|
610
|
+
// Only if direct injection failed or to be double sure
|
|
611
|
+
if (!navigator.userAgentData) {
|
|
612
|
+
const originalNavigator = navigator;
|
|
613
|
+
const proxyNavigator = new Proxy(originalNavigator, {
|
|
614
|
+
get(target, prop) {
|
|
615
|
+
if (prop === 'userAgentData') return userAgentDataInstance;
|
|
616
|
+
if (prop === 'userAgent') return bulletproofUserAgent;
|
|
617
|
+
return Reflect.get(target, prop);
|
|
618
|
+
}
|
|
619
|
+
});
|
|
620
|
+
|
|
621
|
+
try {
|
|
622
|
+
Object.defineProperty(window, 'navigator', {
|
|
623
|
+
get: () => proxyNavigator,
|
|
624
|
+
configurable: true,
|
|
625
|
+
enumerable: true
|
|
626
|
+
});
|
|
627
|
+
console.log('[stealth] Window.navigator proxied successfully');
|
|
628
|
+
} catch(e) {}
|
|
629
|
+
}
|
|
630
|
+
} catch(e) {}
|
|
607
631
|
})();
|
|
608
632
|
|
|
609
633
|
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brave-real-playwright-core",
|
|
3
|
-
"version": "1.57.0-patch.
|
|
3
|
+
"version": "1.57.0-patch.20",
|
|
4
4
|
"description": "Brave-optimized Playwright Core (v1.57.0) with comprehensive stealth patches and error stack sanitization",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"playwright",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/codeiva4u/Brave-Real-
|
|
24
|
+
"url": "git+https://github.com/codeiva4u/Brave-Real-Browser-Mcp-Server.git",
|
|
25
|
+
"directory": "packages/brave-real-playwright-core"
|
|
25
26
|
},
|
|
26
27
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/codeiva4u/Brave-Real-
|
|
28
|
+
"url": "https://github.com/codeiva4u/Brave-Real-Browser-Mcp-Server/issues"
|
|
28
29
|
},
|
|
29
|
-
"homepage": "https://
|
|
30
|
+
"homepage": "https://github.com/codeiva4u/Brave-Real-Browser-Mcp-Server/tree/main/packages/brave-real-playwright-core",
|
|
30
31
|
"author": {
|
|
31
|
-
"name": "
|
|
32
|
-
"
|
|
33
|
-
"url": "https://rebrowser.net"
|
|
32
|
+
"name": "codeiva4u",
|
|
33
|
+
"url": "https://github.com/codeiva4u"
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"bin": {
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
],
|
|
49
49
|
"brave": {
|
|
50
50
|
"optimized": true,
|
|
51
|
-
"version": "1.57.0-patch.
|
|
51
|
+
"version": "1.57.0-patch.16",
|
|
52
52
|
"basedOn": {
|
|
53
53
|
"playwright-core": "1.57.0",
|
|
54
|
-
"patches-version": "1.57.0-patch.
|
|
55
|
-
"release-info": "Brave Playwright v1.57.0-patch.
|
|
54
|
+
"patches-version": "1.57.0-patch.16",
|
|
55
|
+
"release-info": "Brave Playwright v1.57.0-patch.16 based on Playwright Core v1.57.0"
|
|
56
56
|
},
|
|
57
57
|
"versionInfo": {
|
|
58
|
-
"braveVersion": "1.57.0-patch.
|
|
58
|
+
"braveVersion": "1.57.0-patch.16",
|
|
59
59
|
"playwrightVersion": "1.57.0",
|
|
60
|
-
"fullName": "Brave Playwright Core v1.57.0-patch.
|
|
60
|
+
"fullName": "Brave Playwright Core v1.57.0-patch.16 (Playwright 1.57.0)"
|
|
61
61
|
},
|
|
62
62
|
"features": [
|
|
63
63
|
"error-stack-sanitization",
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
"successRate": "100%"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
}
|
|
74
|
+
}
|
package/stealth-injection.js
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
return Promise.resolve({
|
|
36
36
|
ok: true,
|
|
37
37
|
json: () => Promise.resolve([{
|
|
38
|
-
version: '
|
|
38
|
+
version: '144.0.7559.59',
|
|
39
39
|
time: new Date().toISOString()
|
|
40
40
|
}])
|
|
41
41
|
});
|
|
@@ -139,18 +139,9 @@
|
|
|
139
139
|
configurable: true
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
//
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
delete window.chrome.runtime;
|
|
146
|
-
}
|
|
147
|
-
if (window.chrome.loadTimes) {
|
|
148
|
-
delete window.chrome.loadTimes;
|
|
149
|
-
}
|
|
150
|
-
if (window.chrome.csi) {
|
|
151
|
-
delete window.chrome.csi;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
142
|
+
// NOTE: Do NOT delete window.chrome.runtime - ReCaptcha V3 needs it!
|
|
143
|
+
// Keeping chrome object intact for better ReCaptcha scores
|
|
144
|
+
// Previously this code was deleting chrome.runtime which caused low ReCaptcha scores
|
|
154
145
|
|
|
155
146
|
// Spoof permissions API
|
|
156
147
|
if (navigator.permissions && navigator.permissions.query) {
|
|
@@ -444,29 +435,15 @@
|
|
|
444
435
|
|
|
445
436
|
// 4. BULLETPROOF USER AGENT STEALTH
|
|
446
437
|
|
|
447
|
-
// BULLETPROOF User Agent spoofing -
|
|
438
|
+
// BULLETPROOF User Agent spoofing - DYNAMIC VERSION: 144.0.7559.59
|
|
448
439
|
(function() {
|
|
449
|
-
// 🦁
|
|
450
|
-
const
|
|
451
|
-
|
|
452
|
-
const isChromeOptimized = process.env.REBROWSER_STEALTH_CHROME_OPTIMIZATIONS === '1' ||
|
|
453
|
-
process.env.REBROWSER_AUTO_BROWSER_TYPE === 'chrome';
|
|
440
|
+
// 🦁 DYNAMIC CHROME VERSION - Auto-synced with latest stable
|
|
441
|
+
const INJECTED_CHROME_VERSION = '144.0.7559.59';
|
|
442
|
+
const INJECTED_MAJOR_VERSION = '144';
|
|
454
443
|
|
|
455
|
-
//
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
// Brave-optimized user agent (maximum stealth)
|
|
459
|
-
bulletproofUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.59 Safari/537.36';
|
|
460
|
-
console.log('[🦁 BRAVE-STEALTH] Brave browser optimizations active - maximum stealth mode');
|
|
461
|
-
} else if (isChromeOptimized) {
|
|
462
|
-
// Chrome-optimized user agent
|
|
463
|
-
bulletproofUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.59 Safari/537.36';
|
|
464
|
-
console.log('[🔵 CHROME-STEALTH] Chrome browser optimizations active');
|
|
465
|
-
} else {
|
|
466
|
-
// Default fallback user agent
|
|
467
|
-
bulletproofUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.59 Safari/537.36';
|
|
468
|
-
console.log('[⚙️ DEFAULT-STEALTH] Using default browser stealth mode');
|
|
469
|
-
}
|
|
444
|
+
// Dynamic user agent with latest Chrome version
|
|
445
|
+
const bulletproofUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.59 Safari/537.36';
|
|
446
|
+
console.log('[🎯 DYNAMIC-STEALTH] Using Chrome version: ' + INJECTED_CHROME_VERSION);
|
|
470
447
|
|
|
471
448
|
// COMPLETELY override navigator.userAgent
|
|
472
449
|
Object.defineProperty(navigator, 'userAgent', {
|
|
@@ -482,9 +459,6 @@
|
|
|
482
459
|
enumerable: true
|
|
483
460
|
});
|
|
484
461
|
|
|
485
|
-
|
|
486
|
-
// BULLETPROOF platform detection
|
|
487
|
-
|
|
488
462
|
// BULLETPROOF platform detection
|
|
489
463
|
Object.defineProperty(navigator, 'platform', {
|
|
490
464
|
get: () => 'Win32',
|
|
@@ -517,23 +491,31 @@
|
|
|
517
491
|
});
|
|
518
492
|
})();
|
|
519
493
|
|
|
520
|
-
// Enhanced userAgentData with getHighEntropyValues method -
|
|
494
|
+
// Enhanced userAgentData with getHighEntropyValues method - DYNAMIC VERSION
|
|
521
495
|
(function() {
|
|
496
|
+
const INJECTED_CHROME_VERSION = '144.0.7559.59';
|
|
497
|
+
const INJECTED_MAJOR_VERSION = '144';
|
|
498
|
+
|
|
522
499
|
// Aggressively delete existing userAgentData
|
|
523
500
|
try {
|
|
524
|
-
delete
|
|
525
|
-
|
|
501
|
+
// Try to delete from prototype
|
|
502
|
+
if (Navigator.prototype.userAgentData) {
|
|
503
|
+
delete Navigator.prototype.userAgentData;
|
|
504
|
+
}
|
|
505
|
+
} catch (e) { console.log('[stealth] Failed to delete proto userAgentData:', e.message); }
|
|
506
|
+
|
|
526
507
|
try {
|
|
527
|
-
|
|
508
|
+
// Try to delete from instance
|
|
509
|
+
if (navigator.hasOwnProperty('userAgentData') || 'userAgentData' in navigator) {
|
|
528
510
|
delete navigator.userAgentData;
|
|
529
511
|
}
|
|
530
|
-
} catch {}
|
|
512
|
+
} catch (e) { console.log('[stealth] Failed to delete instance userAgentData:', e.message); }
|
|
531
513
|
|
|
532
514
|
const userAgentDataInstance = {
|
|
533
515
|
brands: [
|
|
534
516
|
{ brand: 'Not_A Brand', version: '24' },
|
|
535
|
-
{ brand: 'Chromium', version:
|
|
536
|
-
{ brand: 'Google Chrome', version:
|
|
517
|
+
{ brand: 'Chromium', version: INJECTED_MAJOR_VERSION },
|
|
518
|
+
{ brand: 'Google Chrome', version: INJECTED_MAJOR_VERSION }
|
|
537
519
|
],
|
|
538
520
|
mobile: false,
|
|
539
521
|
platform: 'Windows',
|
|
@@ -543,15 +525,15 @@
|
|
|
543
525
|
bitness: '64',
|
|
544
526
|
brands: userAgentDataInstance.brands,
|
|
545
527
|
fullVersionList: [
|
|
546
|
-
{ brand: 'Not_A Brand', version:
|
|
547
|
-
{ brand: 'Chromium', version:
|
|
548
|
-
{ brand: 'Google Chrome', version:
|
|
528
|
+
{ brand: 'Not_A Brand', version: INJECTED_CHROME_VERSION },
|
|
529
|
+
{ brand: 'Chromium', version: INJECTED_CHROME_VERSION },
|
|
530
|
+
{ brand: 'Google Chrome', version: INJECTED_CHROME_VERSION }
|
|
549
531
|
],
|
|
550
532
|
mobile: false,
|
|
551
533
|
model: '',
|
|
552
534
|
platform: 'Windows',
|
|
553
535
|
platformVersion: '10.0.0',
|
|
554
|
-
uaFullVersion:
|
|
536
|
+
uaFullVersion: INJECTED_CHROME_VERSION
|
|
555
537
|
});
|
|
556
538
|
},
|
|
557
539
|
toJSON: function() {
|
|
@@ -563,11 +545,53 @@
|
|
|
563
545
|
}
|
|
564
546
|
};
|
|
565
547
|
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
548
|
+
try {
|
|
549
|
+
// Define on INSTANCE directly (more reliable)
|
|
550
|
+
Object.defineProperty(navigator, 'userAgentData', {
|
|
551
|
+
get: () => userAgentDataInstance,
|
|
552
|
+
configurable: false,
|
|
553
|
+
enumerable: true
|
|
554
|
+
});
|
|
555
|
+
console.log('[stealth] userAgentData injected successfully on navigator instance');
|
|
556
|
+
} catch (e) {
|
|
557
|
+
console.error('[stealth] FAILED to inject userAgentData on instance:', e.message);
|
|
558
|
+
|
|
559
|
+
// Fallback to prototype
|
|
560
|
+
try {
|
|
561
|
+
Object.defineProperty(Navigator.prototype, 'userAgentData', {
|
|
562
|
+
get: () => userAgentDataInstance,
|
|
563
|
+
configurable: false,
|
|
564
|
+
enumerable: true
|
|
565
|
+
});
|
|
566
|
+
console.log('[stealth] userAgentData injected successfully on Navigator.prototype');
|
|
567
|
+
} catch (e2) {
|
|
568
|
+
console.error('[stealth] FAILED to inject userAgentData on prototype:', e2.message);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
// AGGRESSIVE: Proxy navigator if possible
|
|
573
|
+
try {
|
|
574
|
+
// Only if direct injection failed or to be double sure
|
|
575
|
+
if (!navigator.userAgentData) {
|
|
576
|
+
const originalNavigator = navigator;
|
|
577
|
+
const proxyNavigator = new Proxy(originalNavigator, {
|
|
578
|
+
get(target, prop) {
|
|
579
|
+
if (prop === 'userAgentData') return userAgentDataInstance;
|
|
580
|
+
if (prop === 'userAgent') return bulletproofUserAgent;
|
|
581
|
+
return Reflect.get(target, prop);
|
|
582
|
+
}
|
|
583
|
+
});
|
|
584
|
+
|
|
585
|
+
try {
|
|
586
|
+
Object.defineProperty(window, 'navigator', {
|
|
587
|
+
get: () => proxyNavigator,
|
|
588
|
+
configurable: true,
|
|
589
|
+
enumerable: true
|
|
590
|
+
});
|
|
591
|
+
console.log('[stealth] Window.navigator proxied successfully');
|
|
592
|
+
} catch(e) {}
|
|
593
|
+
}
|
|
594
|
+
} catch(e) {}
|
|
571
595
|
})();
|
|
572
596
|
|
|
573
597
|
|