Compare commits
32 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0154aeae36 | ||
|
|
dccc943713 | ||
|
|
e05a142a86 | ||
|
|
5d239c958f | ||
|
|
4c2ff0d1ae | ||
|
|
10dc61fcdc | ||
|
|
bb14534fa4 | ||
|
|
f6b313e1af | ||
|
|
7bca6b7b5f | ||
|
|
82e1f98e66 | ||
|
|
294f5d7252 | ||
|
|
38328ce473 | ||
|
|
0012a62f15 | ||
|
|
2e95de4f61 | ||
|
|
888901b01a | ||
|
|
8b6c0a966e | ||
|
|
d492304870 | ||
|
|
56369c2914 | ||
|
|
d6fff31a4f | ||
|
|
0765375063 | ||
|
|
50e53f8507 | ||
|
|
6c387723e8 | ||
|
|
2592ea3f41 | ||
|
|
481b575b92 | ||
|
|
90fa5399aa | ||
|
|
2ab3089f8f | ||
|
|
fcabda87f5 | ||
|
|
aa6ea7a4c4 | ||
|
|
2b8748ca5b | ||
|
|
25c00a9599 | ||
|
|
9faf49847a | ||
|
|
c0dfaf710d |
21
LICENSE
|
|
@ -1,21 +0,0 @@
|
||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2019 Michael Xieyang Liu
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
674
license
Normal file
|
|
@ -0,0 +1,674 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||||
11124
package-lock.json
generated
Normal file
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "vytal",
|
"name": "vytal",
|
||||||
"version": "2.1.4",
|
"version": "2.1.9",
|
||||||
"description": "Spoof your location data and user agent.",
|
"description": "Spoof your location data and user agent.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
@ -9,7 +9,6 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node utils/build.js",
|
"build": "node utils/build.js",
|
||||||
"start": "node utils/webserver.js",
|
|
||||||
"prettier": "prettier --write '**/*.{js,jsx,ts,tsx,json,css,scss,md}'"
|
"prettier": "prettier --write '**/*.{js,jsx,ts,tsx,json,css,scss,md}'"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
@ -19,6 +18,7 @@
|
||||||
"@types/lodash.debounce": "^4.0.7",
|
"@types/lodash.debounce": "^4.0.7",
|
||||||
"@types/webpack-env": "^1.18.0",
|
"@types/webpack-env": "^1.18.0",
|
||||||
"@types/webrtc": "^0.0.33",
|
"@types/webrtc": "^0.0.33",
|
||||||
|
"country-flag-emoji-polyfill": "^0.1.4",
|
||||||
"lodash.debounce": "^4.0.8",
|
"lodash.debounce": "^4.0.8",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"html-loader": "^3.1.0",
|
"html-loader": "^3.1.0",
|
||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "^5.5.0",
|
||||||
"node-sass": "^6.0.1",
|
"sass": "*",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
"sass-loader": "^12.4.0",
|
"sass-loader": "^12.4.0",
|
||||||
"source-map-loader": "^3.0.1",
|
"source-map-loader": "^3.0.1",
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 167 KiB After Width: | Height: | Size: 167 KiB |
BIN
promo/vytal-logo-1024.png
Normal file
|
After Width: | Height: | Size: 69 KiB |
78
promo/vytal-logo-background.svg
Normal file
|
|
@ -0,0 +1,78 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="svg1988"
|
||||||
|
xml:space="preserve"
|
||||||
|
width="336.63403"
|
||||||
|
height="336.09796"
|
||||||
|
viewBox="0 0 336.63403 336.09796"
|
||||||
|
sodipodi:docname="vytal-logo-background.svg"
|
||||||
|
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs1992"><linearGradient
|
||||||
|
id="linearGradient3493"
|
||||||
|
inkscape:swatch="solid"><stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3491" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient3443"
|
||||||
|
inkscape:swatch="solid"><stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3441" /></linearGradient></defs><sodipodi:namedview
|
||||||
|
id="namedview1990"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
showgrid="false"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:zoom="1.4997434"
|
||||||
|
inkscape:cx="130.02224"
|
||||||
|
inkscape:cy="146.02498"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1012"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g1994" /><g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer5"
|
||||||
|
inkscape:label="ink_ext_XXXXXX 2"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(-651.16235,-636.64809)"><ellipse
|
||||||
|
style="display:inline;fill:#ffffff;fill-opacity:1;stroke:#a55eea;stroke-width:30.1447;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="path3359"
|
||||||
|
cx="819.47937"
|
||||||
|
cy="804.69708"
|
||||||
|
rx="153.24467"
|
||||||
|
ry="152.97664" /></g><g
|
||||||
|
id="g1994"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
inkscape:label="ink_ext_XXXXXX"
|
||||||
|
transform="matrix(1.3333333,0,0,-1.3333333,-651.16235,963.35191)"
|
||||||
|
style="display:inline"><g
|
||||||
|
id="g1996"
|
||||||
|
transform="matrix(0.1,0,0,0.1,14.121465,-4.35597)"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"><path
|
||||||
|
d="m 6024.57,6299.02 c 236.48,-9.01 357,-293.74 194.89,-469.43 -43.11,-46.74 -68,-107.39 -68,-170.98 v -356.57 c 0,-76.84 -62.88,-142.04 -139.71,-141 -74.94,1.01 -135.95,62.63 -135.95,137.81 v 359.75 c 0,62.21 -22.45,122.95 -65.28,168.08 -171.49,180.65 -37.65,481.93 214.05,472.34"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"
|
||||||
|
id="path1998" /><path
|
||||||
|
d="m 5479.96,5351.64 c -199.26,160.18 -313.53,398.53 -313.53,653.93 0,462.43 376.21,838.64 838.65,838.64 462.42,0 838.65,-376.21 838.65,-838.64 0,-249.81 -110.21,-484.83 -302.36,-644.79 -48.79,-40.62 -121.33,-34.01 -161.96,14.81 -40.64,48.8 -34.02,121.31 14.81,161.95 435.48,362.57 179.51,1076.67 -389.14,1076.67 -574.02,0 -826.6,-725.08 -381.02,-1083.31 49.49,-39.8 57.37,-112.18 17.58,-161.68 -39.77,-49.48 -112.19,-57.38 -161.68,-17.58"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"
|
||||||
|
id="path2002" /></g></g><g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer4"
|
||||||
|
inkscape:label="ink_ext_XXXXXX 1"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(-651.16235,-636.64809)" /></svg>
|
||||||
|
After Width: | Height: | Size: 3.6 KiB |
BIN
promo/vytal-logo.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
78
promo/vytal-logo.svg
Normal file
|
|
@ -0,0 +1,78 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="svg1988"
|
||||||
|
xml:space="preserve"
|
||||||
|
width="336.63403"
|
||||||
|
height="336.09796"
|
||||||
|
viewBox="0 0 336.63403 336.09796"
|
||||||
|
sodipodi:docname="vytal-logo.svg"
|
||||||
|
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs1992"><linearGradient
|
||||||
|
id="linearGradient3493"
|
||||||
|
inkscape:swatch="solid"><stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3491" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient3443"
|
||||||
|
inkscape:swatch="solid"><stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3441" /></linearGradient></defs><sodipodi:namedview
|
||||||
|
id="namedview1990"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
showgrid="false"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:zoom="1.4997434"
|
||||||
|
inkscape:cx="130.02224"
|
||||||
|
inkscape:cy="146.02498"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1012"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g1994" /><g
|
||||||
|
id="g1994"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
inkscape:label="ink_ext_XXXXXX"
|
||||||
|
transform="matrix(1.3333333,0,0,-1.3333333,-651.16235,963.35191)"
|
||||||
|
style="display:inline"><g
|
||||||
|
id="g1996"
|
||||||
|
transform="matrix(0.1,0,0,0.1,14.121465,-4.35597)"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"><path
|
||||||
|
d="m 6024.57,6299.02 c 236.48,-9.01 357,-293.74 194.89,-469.43 -43.11,-46.74 -68,-107.39 -68,-170.98 v -356.57 c 0,-76.84 -62.88,-142.04 -139.71,-141 -74.94,1.01 -135.95,62.63 -135.95,137.81 v 359.75 c 0,62.21 -22.45,122.95 -65.28,168.08 -171.49,180.65 -37.65,481.93 214.05,472.34"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"
|
||||||
|
id="path1998" /><path
|
||||||
|
d="m 5479.96,5351.64 c -199.26,160.18 -313.53,398.53 -313.53,653.93 0,462.43 376.21,838.64 838.65,838.64 462.42,0 838.65,-376.21 838.65,-838.64 0,-249.81 -110.21,-484.83 -302.36,-644.79 -48.79,-40.62 -121.33,-34.01 -161.96,14.81 -40.64,48.8 -34.02,121.31 14.81,161.95 435.48,362.57 179.51,1076.67 -389.14,1076.67 -574.02,0 -826.6,-725.08 -381.02,-1083.31 49.49,-39.8 57.37,-112.18 17.58,-161.68 -39.77,-49.48 -112.19,-57.38 -161.68,-17.58"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"
|
||||||
|
id="path2002" /></g></g><g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer5"
|
||||||
|
inkscape:label="ink_ext_XXXXXX 2"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(-651.16235,-636.64809)"><ellipse
|
||||||
|
style="display:inline;fill:none;fill-opacity:1;stroke:#a55eea;stroke-width:30.1447;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="path3359"
|
||||||
|
cx="819.47937"
|
||||||
|
cy="804.69708"
|
||||||
|
rx="153.24467"
|
||||||
|
ry="152.97664" /></g><g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer4"
|
||||||
|
inkscape:label="ink_ext_XXXXXX 1"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(-651.16235,-636.64809)" /></svg>
|
||||||
|
After Width: | Height: | Size: 3.6 KiB |
93
promo/vytal-text-logo.svg
Normal file
|
|
@ -0,0 +1,93 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="svg1988"
|
||||||
|
xml:space="preserve"
|
||||||
|
width="154.78209"
|
||||||
|
height="35"
|
||||||
|
viewBox="0 0 154.78209 35"
|
||||||
|
sodipodi:docname="vytal-text-logo.svg"
|
||||||
|
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs1992"><linearGradient
|
||||||
|
id="linearGradient3493"
|
||||||
|
inkscape:swatch="solid"><stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3491" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient3443"
|
||||||
|
inkscape:swatch="solid"><stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3441" /></linearGradient></defs><sodipodi:namedview
|
||||||
|
id="namedview1990"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
showgrid="false"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:zoom="3.102071"
|
||||||
|
inkscape:cx="153.44588"
|
||||||
|
inkscape:cy="21.276109"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1012"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="text1515"
|
||||||
|
height="336.09796px" /><g
|
||||||
|
id="g1994"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
inkscape:label="ink_ext_XXXXXX"
|
||||||
|
transform="matrix(1.3333333,0,0,-1.3333333,-651.16228,963.35193)"
|
||||||
|
style="display:inline"><g
|
||||||
|
id="g1996"
|
||||||
|
transform="matrix(0.01041361,0,0,0.01041362,438.98511,646.87986)"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"><path
|
||||||
|
d="m 6024.57,6299.02 c 236.48,-9.01 357,-293.74 194.89,-469.43 -43.11,-46.74 -68,-107.39 -68,-170.98 v -356.57 c 0,-76.84 -62.88,-142.04 -139.71,-141 -74.94,1.01 -135.95,62.63 -135.95,137.81 v 359.75 c 0,62.21 -22.45,122.95 -65.28,168.08 -171.49,180.65 -37.65,481.93 214.05,472.34"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"
|
||||||
|
id="path1998" /><path
|
||||||
|
d="m 5479.96,5351.64 c -199.26,160.18 -313.53,398.53 -313.53,653.93 0,462.43 376.21,838.64 838.65,838.64 462.42,0 838.65,-376.21 838.65,-838.64 0,-249.81 -110.21,-484.83 -302.36,-644.79 -48.79,-40.62 -121.33,-34.01 -161.96,14.81 -40.64,48.8 -34.02,121.31 14.81,161.95 435.48,362.57 179.51,1076.67 -389.14,1076.67 -574.02,0 -826.6,-725.08 -381.02,-1083.31 49.49,-39.8 57.37,-112.18 17.58,-161.68 -39.77,-49.48 -112.19,-57.38 -161.68,-17.58"
|
||||||
|
style="fill:#a55eea;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9975;stroke-miterlimit:4;stroke-dasharray:none"
|
||||||
|
id="path2002" /></g><g
|
||||||
|
aria-label="VYTAL"
|
||||||
|
transform="scale(0.99999981,-1.0000002)"
|
||||||
|
id="text1515"
|
||||||
|
style="font-size:27.0756px;line-height:1.25;font-family:'TVA 2012';-inkscape-font-specification:'TVA 2012, ';fill:#a55eea;stroke-width:0.078102"><path
|
||||||
|
d="m 533.1602,-718.66309 q -0.79323,-0.31729 -1.57324,0.0264 -0.79323,0.33051 -1.11052,1.12375 l -4.01903,10.08724 -4.03226,-10.08724 q -0.31729,-0.79324 -1.0973,-1.12375 -0.78001,-0.34373 -1.57324,-0.0264 -0.79323,0.31729 -1.13696,1.11052 -0.33052,0.78001 -0.0132,1.57324 l 5.93601,14.87308 q 0.23797,0.59492 0.75357,0.95187 0.52882,0.35696 1.16341,0.35696 0.63458,0 1.15018,-0.35696 0.52882,-0.35695 0.76679,-0.95187 l 5.93601,-14.87308 q 0.31729,-0.79323 -0.0264,-1.57324 -0.33052,-0.79323 -1.12375,-1.11052 z"
|
||||||
|
id="path833" /><path
|
||||||
|
d="m 545.29663,-699.96929 q 0.84611,0 1.42781,-0.59492 0.59493,-0.59493 0.59493,-1.42782 v -6.35906 l 5.57905,-6.99365 q 0.52882,-0.64781 0.43628,-1.4807 -0.0925,-0.83289 -0.75357,-1.36171 -0.64781,-0.5156 -1.4807,-0.42306 -0.83289,0.0926 -1.36171,0.74035 l -4.38921,5.49973 -4.07191,-5.44685 q -0.50238,-0.67424 -1.33528,-0.79323 -0.81967,-0.11898 -1.49391,0.3834 -0.67425,0.50238 -0.79323,1.33527 -0.11899,0.83289 0.38339,1.49392 l 5.23532,7.00687 v 6.39872 q 0,0.83289 0.59492,1.42782 0.59493,0.59492 1.42782,0.59492 z"
|
||||||
|
id="path835" /><path
|
||||||
|
d="m 562.166,-714.68372 v 12.8239 q 0,0.84611 0.59492,1.45425 0.60814,0.60815 1.45425,0.60815 0.85934,0 1.46748,-0.60815 0.59492,-0.60814 0.59492,-1.45425 v -12.8239 h 3.90005 q 0.85934,0 1.45426,-0.60814 0.60814,-0.59492 0.60814,-1.45426 0,-0.84611 -0.60814,-1.45425 -0.59492,-0.60814 -1.45426,-0.60814 h -11.91167 q -0.85934,0 -1.45426,0.60814 -0.60814,0.60814 -0.60814,1.45425 0,0.85934 0.60814,1.45426 0.59492,0.60814 1.45426,0.60814 z"
|
||||||
|
id="path837" /><path
|
||||||
|
d="m 580.96556,-717.5129 q -0.23797,-0.58171 -0.76679,-0.93866 -0.5156,-0.35695 -1.15019,-0.35695 -0.63458,0 -1.1634,0.35695 -0.5156,0.35695 -0.75357,0.93866 l -5.93601,14.88629 q -0.31729,0.79323 0.0132,1.57324 0.34374,0.79323 1.13697,1.0973 0.79323,0.31729 1.57324,-0.0132 0.78001,-0.34373 1.0973,-1.13696 l 4.03225,-10.08725 4.01904,10.08725 q 0.23797,0.60814 0.78001,0.95187 0.5156,0.35696 1.13696,0.35696 0.39662,0 0.76679,-0.15865 0.79323,-0.30407 1.12375,-1.0973 0.34373,-0.78001 0.0264,-1.57324 z"
|
||||||
|
id="path839" /><path
|
||||||
|
d="m 594.45048,-704.09409 v -12.82389 q 0,-0.85933 -0.60814,-1.46748 -0.60815,-0.59492 -1.45426,-0.59492 -0.85933,0 -1.45425,0.59492 -0.60815,0.60815 -0.60815,1.46748 v 14.88629 q 0,0.84611 0.60815,1.45426 0.59492,0.60814 1.45425,0.60814 h 10.00793 q 0.85933,0 1.45425,-0.60814 0.60815,-0.60815 0.60815,-1.45426 0,-0.85933 -0.60815,-1.45426 -0.59492,-0.60814 -1.45425,-0.60814 z"
|
||||||
|
id="path841" /></g></g><g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer5"
|
||||||
|
inkscape:label="ink_ext_XXXXXX 2"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(-651.16228,-636.64807)"><ellipse
|
||||||
|
style="display:inline;fill:none;fill-opacity:1;stroke:#a55eea;stroke-width:3.13916;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="path3359"
|
||||||
|
cx="668.69019"
|
||||||
|
cy="654.14807"
|
||||||
|
rx="15.958326"
|
||||||
|
ry="15.930421" /></g><g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer4"
|
||||||
|
inkscape:label="ink_ext_XXXXXX 1"
|
||||||
|
style="display:inline"
|
||||||
|
transform="translate(-651.16228,-636.64807)" /></svg>
|
||||||
|
After Width: | Height: | Size: 6.4 KiB |
|
|
@ -1,184 +0,0 @@
|
||||||
import { useState, useEffect, ChangeEvent } from 'react'
|
|
||||||
import { Box, Label, Radio, Flex, Select } from 'theme-ui'
|
|
||||||
import DebouncedInput from '../../Components/DebouncedInput'
|
|
||||||
import userAgents from '../../../utils/userAgents'
|
|
||||||
import detachDebugger from '../../../utils/detachDebugger'
|
|
||||||
import Page from '../../Components/Page'
|
|
||||||
|
|
||||||
interface UserAgentPageProps {
|
|
||||||
tab: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const UserAgentPage = ({ tab }: UserAgentPageProps) => {
|
|
||||||
const [userAgentType, setUserAgentType] = useState('default')
|
|
||||||
const [operatingSystem, setOperatingSystem] = useState('Windows')
|
|
||||||
const [browser, setBrowser] = useState('Chrome')
|
|
||||||
const [userAgent, setUserAgent] = useState('')
|
|
||||||
const [platform, setPlatform] = useState('')
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
chrome.storage.local.get(
|
|
||||||
['userAgentType', 'operatingSystem', 'browser', 'userAgent', 'platform'],
|
|
||||||
(storage) => {
|
|
||||||
storage.userAgentType && setUserAgentType(storage.userAgentType)
|
|
||||||
storage.operatingSystem && setOperatingSystem(storage.operatingSystem)
|
|
||||||
storage.browser && setBrowser(storage.browser)
|
|
||||||
storage.userAgent && setUserAgent(storage.userAgent)
|
|
||||||
storage.platform && setPlatform(storage.platform)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
const changeType = (e: ChangeEvent<HTMLInputElement>) => {
|
|
||||||
detachDebugger()
|
|
||||||
setUserAgentType(e.target.value)
|
|
||||||
chrome.storage.local.set({ userAgentType: e.target.value })
|
|
||||||
|
|
||||||
if (e.target.value === 'default') {
|
|
||||||
setUserAgent('')
|
|
||||||
setPlatform('')
|
|
||||||
chrome.storage.local.set({
|
|
||||||
userAgent: '',
|
|
||||||
platform: '',
|
|
||||||
})
|
|
||||||
} else if (e.target.value === 'preloaded') {
|
|
||||||
setUserAgent(userAgents[operatingSystem]['userAgents'][browser])
|
|
||||||
setPlatform(userAgents[operatingSystem]['platform'])
|
|
||||||
chrome.storage.local.set({
|
|
||||||
userAgent: userAgents[operatingSystem]['userAgents'][browser],
|
|
||||||
platform: userAgents[operatingSystem]['platform'],
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const changeOperatingSystem = async (e: ChangeEvent<HTMLSelectElement>) => {
|
|
||||||
detachDebugger()
|
|
||||||
setOperatingSystem(e.target.value)
|
|
||||||
let browserValue = browser
|
|
||||||
if (!userAgents[e.target.value]['userAgents'][browser]) {
|
|
||||||
browserValue = Object.keys(userAgents[e.target.value]['userAgents'])[0]
|
|
||||||
setBrowser(browserValue)
|
|
||||||
}
|
|
||||||
setUserAgent(userAgents[e.target.value]['userAgents'][browserValue])
|
|
||||||
setPlatform(userAgents[e.target.value]['platform'])
|
|
||||||
chrome.storage.local.set({
|
|
||||||
userAgent: userAgents[e.target.value]['userAgents'][browserValue],
|
|
||||||
platform: userAgents[e.target.value]['platform'],
|
|
||||||
operatingSystem: e.target.value,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const changeBrowser = (e: ChangeEvent<HTMLSelectElement>) => {
|
|
||||||
detachDebugger()
|
|
||||||
setBrowser(e.target.value)
|
|
||||||
setUserAgent(userAgents[operatingSystem]['userAgents'][e.target.value])
|
|
||||||
chrome.storage.local.set({
|
|
||||||
userAgent: userAgents[operatingSystem]['userAgents'][e.target.value],
|
|
||||||
browser: e.target.value,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const changeTextInput = () => {
|
|
||||||
if (userAgentType !== 'custom') {
|
|
||||||
setUserAgentType('custom')
|
|
||||||
chrome.storage.local.set({
|
|
||||||
userAgentType: 'custom',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Page isCurrentTab={tab === 'userAgent'} title={'User Agent'}>
|
|
||||||
<Flex
|
|
||||||
sx={{
|
|
||||||
justifyContent: 'space-between',
|
|
||||||
mb: '8px',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Label>
|
|
||||||
<Radio
|
|
||||||
name="userAgentType"
|
|
||||||
value="default"
|
|
||||||
onChange={changeType}
|
|
||||||
checked={userAgentType === 'default'}
|
|
||||||
/>
|
|
||||||
Default
|
|
||||||
</Label>
|
|
||||||
<Label>
|
|
||||||
<Radio
|
|
||||||
name="userAgentType"
|
|
||||||
value="preloaded"
|
|
||||||
onChange={changeType}
|
|
||||||
checked={userAgentType === 'preloaded'}
|
|
||||||
/>
|
|
||||||
Preloaded
|
|
||||||
</Label>
|
|
||||||
<Label>
|
|
||||||
<Radio
|
|
||||||
name="userAgentType"
|
|
||||||
value="custom"
|
|
||||||
onChange={changeType}
|
|
||||||
checked={userAgentType === 'custom'}
|
|
||||||
/>
|
|
||||||
Custom
|
|
||||||
</Label>
|
|
||||||
</Flex>
|
|
||||||
{userAgentType === 'preloaded' && (
|
|
||||||
<Flex sx={{ gap: '16px' }}>
|
|
||||||
<Box sx={{ width: '100%' }}>
|
|
||||||
<Label htmlFor="operatingSystem">Operating System</Label>
|
|
||||||
<Select
|
|
||||||
name="operatingSystem"
|
|
||||||
id="operatingSystem"
|
|
||||||
value={operatingSystem}
|
|
||||||
onChange={changeOperatingSystem}
|
|
||||||
mb={'8px'}
|
|
||||||
>
|
|
||||||
{Object.keys(userAgents).map((key) => (
|
|
||||||
<option value={key} key={key}>
|
|
||||||
{key}
|
|
||||||
</option>
|
|
||||||
))}
|
|
||||||
</Select>
|
|
||||||
</Box>
|
|
||||||
<Box sx={{ width: '100%' }}>
|
|
||||||
<Label htmlFor="browser">Browser</Label>
|
|
||||||
<Select
|
|
||||||
name="browser"
|
|
||||||
id="browser"
|
|
||||||
value={browser}
|
|
||||||
onChange={changeBrowser}
|
|
||||||
mb={'8px'}
|
|
||||||
>
|
|
||||||
{Object.keys(userAgents[operatingSystem]['userAgents']).map(
|
|
||||||
(key) => (
|
|
||||||
<option value={key} key={key}>
|
|
||||||
{key}
|
|
||||||
</option>
|
|
||||||
)
|
|
||||||
)}
|
|
||||||
</Select>
|
|
||||||
</Box>
|
|
||||||
</Flex>
|
|
||||||
)}
|
|
||||||
<DebouncedInput
|
|
||||||
name="userAgent"
|
|
||||||
title="User Agent"
|
|
||||||
value={userAgent}
|
|
||||||
setValue={setUserAgent}
|
|
||||||
onChange={changeTextInput}
|
|
||||||
mb="12px"
|
|
||||||
/>
|
|
||||||
<DebouncedInput
|
|
||||||
name="platform"
|
|
||||||
title="Platform"
|
|
||||||
value={platform}
|
|
||||||
setValue={setPlatform}
|
|
||||||
onChange={changeTextInput}
|
|
||||||
mb="12px"
|
|
||||||
/>
|
|
||||||
</Page>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default UserAgentPage
|
|
||||||
6
src/_locales/am/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Works With Zen Mate VPN & Express VPN" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof የሰዓት ሰቅ፣ የጂኦግራፊያዊ አካባቢ፣ የአካባቢ እና የተጠቃሚ ወኪል። የአካባቢ ውሂብዎን ከቪፒኤን አይፒ አድራሻዎ ጋር ያዛምዱ።"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/ar/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "المنطقة الزمنية المزيفة ، والموقع الجغرافي ، والإعدادات المحلية ، ووكيل المستخدم. تطابق بيانات موقعك مع عنوان IP الخاص بشبكة VPN الخاصة بك"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/bg/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Works With Surfshark VPN & BrowsecVPN" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Фалшива часова зона, геолокация, локал и потребителски агент. Свържете данните за местоположението си с ip адреса на вашата VPN."
|
||||||
|
}
|
||||||
|
}
|
||||||
7
src/_locales/bn/messages.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Works With u Block Origin & NordVPN" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "স্পুফ টাইম জোন, জিওলোকেশন, লোকেল এবং ইউজার এজেন্ট। আপনার VPN এর আইপি ঠিকানার সাথে আপনার অবস্থানের ডেটা মেলে।"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
6
src/_locales/ca/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Falsificació de la zona horària, la geolocalització, la configuració regional i l'agent d'usuari."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/cs/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof časové pásmo, geolokaci, národní prostředí a uživatelského agenta. Přiřaďte údaje o své poloze k IP adrese vaší VPN."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/da/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof tidszone, geolocation, lokalitet og brugeragent. Match dine placeringsdata med din VPN's ip-adresse."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/de/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof-Zeitzone, Geolokalisierung, Gebietsschema und Benutzeragent. Gleichen Sie Ihre Standortdaten mit der IP-Adresse Ihres VPN ab."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/el/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Πλαστή ζώνη ώρας, γεωγραφική τοποθεσία, τοπικές ρυθμίσεις και παράγοντας χρήστη."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/en/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof time zone, geolocation, locale and user agent. Match your location data to your VPN's ip address."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/en_GB/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof time zone, geolocation, locale and user agent. Match your location data to your VPN's ip address."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/en_US/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof time zone, geolocation, locale and user agent. Match your location data to your VPN's ip address."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/es/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Falsificación de zona horaria, geolocalización, configuración regional y agente de usuario."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/es_419/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Falsificación de zona horaria, geolocalización, configuración regional y agente de usuario."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/et/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Ajavööndi, geograafilise asukoha, lokaadi ja kasutajaagendi võlts. Ühendage oma asukohaandmed VPN-i IP-aadressiga."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/fa/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "جعل منطقه زمانی، موقعیت جغرافیایی، منطقه و عامل کاربر. داده های موقعیت مکانی خود را با آدرس IP VPN خود مطابقت دهید."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/fi/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Huijaus aikavyöhyke, maantieteellinen sijainti, alue ja käyttäjäagentti. Yhdistä sijaintitietosi VPN-osoitteesi IP-osoitteeseen."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/fil/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof time zone, geolocation, locale at user agent. Itugma ang data ng iyong lokasyon sa ip address ng iyong VPN."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/fr/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Fuseau horaire, géolocalisation, paramètres régionaux et agent utilisateur usurpés."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/gu/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Works With Cyber Ghost VPN & Nord VPN" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "સ્પૂફ ટાઇમ ઝોન, ભૌગોલિક સ્થાન, લોકેલ અને વપરાશકર્તા એજન્ટ. તમારા VPN ના IP સરનામા સાથે તમારા સ્થાન ડેટાને મેચ કરો."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/he/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "אזור זמן מזויף, מיקום גיאוגרפי, מיקום וסוכן משתמש. התאם את נתוני המיקום שלך לכתובת ה-IP של ה-VPN שלך."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/hi/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "हंसोड़ समय क्षेत्र, भौगोलिक स्थान, लोकेल और उपयोगकर्ता एजेंट। अपने वीपीएन के आईपी पते से अपने स्थान डेटा का मिलान करें।"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/hr/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Lažna vremenska zona, geolokacija, lokalizacija i korisnički agent. Uskladite svoje podatke o lokaciji s IP adresom svog VPN-a."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/hu/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Hamis időzóna, földrajzi hely, terület és felhasználói ügynök. Párosítsa helyadatait VPN-je IP-címével."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/id/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof zona waktu, geolokasi, lokal, dan agen pengguna. Cocokkan data lokasi Anda dengan alamat ip VPN Anda."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/it/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoofing fuso orario, geolocalizzazione, locale e user agent. Abbina i tuoi dati sulla posizione all'indirizzo IP della tua VPN."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/ja/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "タイム ゾーン、位置情報、ロケール、およびユーザー エージェントを偽装します。位置データを VPN の IP アドレスと照合します。"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/kn/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Works With EpressVPN & Surf Shark VPN" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "ಸ್ಪೂಫ್ ಸಮಯ ವಲಯ, ಜಿಯೋಲೊಕೇಶನ್, ಲೊಕೇಲ್ ಮತ್ತು ಬಳಕೆದಾರ ಏಜೆಂಟ್. ನಿಮ್ಮ ಸ್ಥಳ ಡೇಟಾವನ್ನು ನಿಮ್ಮ VPN ನ ip ವಿಳಾಸಕ್ಕೆ ಹೊಂದಿಸಿ."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/ko/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "스푸핑 시간대, 지리적 위치, 로케일 및 사용자 에이전트. 위치 데이터를 VPN의 IP 주소와 일치시킵니다."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/lt/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Apgaulinga laiko juosta, geografinė vieta, lokalė ir vartotojo agentas. Suderinkite vietos duomenis su VPN IP adresu."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/lv/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Maldināta laika josla, ģeogrāfiskā atrašanās vieta, lokalizācija un lietotāja aģents."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/ml/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Works With 1click VPN & HolaVPN" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "സ്പൂഫ് ടൈം സോൺ, ജിയോലൊക്കേഷൻ, ലോക്കൽ, യൂസർ ഏജന്റ്. നിങ്ങളുടെ VPN-ന്റെ ip വിലാസവുമായി നിങ്ങളുടെ ലൊക്കേഷൻ ഡാറ്റ പൊരുത്തപ്പെടുത്തുക."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/mr/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Works With TouchVPN & Ad Guard VPN" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "स्पूफ टाइम झोन, भौगोलिक स्थान, लोकॅल आणि वापरकर्ता एजंट. तुमचा स्थान डेटा तुमच्या VPN च्या ip पत्त्याशी जुळवा."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/ms/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Zon masa palsu, geolokasi, tempat dan ejen pengguna. Padankan data lokasi anda dengan alamat ip VPN anda."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/nl/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof-tijdzone, geolocatie, locale en user-agent. Koppel uw locatiegegevens aan het ip-adres van uw VPN."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/no/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof tidssone, geolokalisering, lokalitet og brukeragent. Match posisjonsdataene dine med VPN-ens ip-adresse."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/pl/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Fałszowanie strefy czasowej, geolokalizacji, lokalizacji i klienta użytkownika."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/pt_BR/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Fuso horário falso, geolocalização, localidade e agente do usuário. Combine seus dados de localização com o endereço IP da sua VPN."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/pt_PT/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Fuso horário falso, geolocalização, localidade e agente do usuário. Combine seus dados de localização com o endereço IP da sua VPN."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/ro/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Falsificarea fusului orar, localizarea geografică, localitatea și agentul utilizator."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/ru/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Подделка часового пояса, геолокации, локали и пользовательского агента."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/sk/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof časové pásmo, geolokáciu, miestne nastavenie a používateľského agenta. Priraďte údaje o svojej polohe k IP adrese vašej VPN."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/sl/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Prevara časovnega pasu, geolokacije, lokalne nastavitve in uporabniškega agenta."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/sr/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Лажна временска зона, геолокација, локализација и кориснички агент. Ускладите своје податке о локацији са ИП адресом вашег ВПН-а."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/sv/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Spoof-tidszon, geolokalisering, plats och användaragent. Matcha din platsdata med din VPN:s ip-adress."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/sw/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Works With 1 click VPN & Hotspot VPN" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Saa za eneo, eneo la eneo, eneo na wakala wa mtumiaji. Linganisha data ya eneo lako na anwani ya IP ya VPN yako."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/ta/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Works With Setup VPN & Hot spot VPN" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "ஸ்பூஃப் நேர மண்டலம், புவி இருப்பிடம், மொழி மற்றும் பயனர் முகவர். உங்கள் இருப்பிடத் தரவை உங்கள் VPN இன் ஐபி முகவரியுடன் பொருத்தவும்."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/te/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "స్పూఫ్ టైమ్ జోన్, జియోలొకేషన్, లొకేల్ మరియు యూజర్ ఏజెంట్. మీ VPN యొక్క ip చిరునామాతో మీ స్థాన డేటాను సరిపోల్చండి."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/th/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "เขตเวลาปลอม ตำแหน่งทางภูมิศาสตร์ ตำแหน่งที่ตั้ง และตัวแทนผู้ใช้ จับคู่ข้อมูลตำแหน่งของคุณกับที่อยู่ IP ของ VPN"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/tr/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Sahte zaman dilimi, coğrafi konum, yerel ayar ve kullanıcı aracısı. Konum verilerinizi VPN'inizin ip adresiyle eşleştirin."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/uk/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Підробка часового поясу, геолокації, локалі та агента користувача. Зіставте дані про своє місцезнаходження з IP-адресою VPN."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/vi/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "Giả mạo múi giờ, định vị địa lý, ngôn ngữ và tác nhân người dùng. Khớp dữ liệu vị trí của bạn với địa chỉ IP VPN của bạn."
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/zh_CN/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "欺骗时区、地理位置、区域设置和用户代理。将您的位置数据与您的 VPN 的 IP 地址相匹配。"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/_locales/zh_TW/messages.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extName": { "message": "Vytal - Spoof Timezone, Geolocation & Locale" },
|
||||||
|
"extDesc": {
|
||||||
|
"message": "欺騙時區、地理位置、區域設置和用戶代理。將您的位置數據與您的 VPN 的 IP 地址相匹配。"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -5,10 +5,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Nunito', Arial, Helvetica, sans-serif;
|
font-family: 'Twemoji Country Flags', 'Nunito', Arial, Helvetica, sans-serif;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
width: 358px;
|
width: 358px;
|
||||||
height: 448px;
|
height: 440px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 1.8 KiB |
BIN
src/assets/icon48.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
14
src/assets/nord.svg
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="720px" height="158px" viewBox="0 0 720 158" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<!-- Generator: Sketch 51.1 (57501) - http://www.bohemiancoding.com/sketch -->
|
||||||
|
<title>nord-logo-horizontal</title>
|
||||||
|
<desc>Created with Sketch.</desc>
|
||||||
|
<defs></defs>
|
||||||
|
<g id="nord-logo-horizontal" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||||
|
<g id="global/logos/horizontal/nordvpn">
|
||||||
|
<path d="M709.840683,65.915493 C704.225352,65.915493 699.71831,61.3797695 699.71831,55.7746479 C699.71831,50.206402 704.225352,45.6338028 709.840683,45.6338028 C715.456015,45.6338028 720,50.206402 720,55.7746479 C720,61.3797695 715.456015,65.915493 709.840683,65.915493 Z M709.840683,47.4775928 C705.296698,47.4775928 701.639344,51.1651729 701.639344,55.7746479 C701.639344,60.3841229 705.296698,64.0717029 709.840683,64.0717029 C714.347726,64.0717029 718.078966,60.3841229 718.078966,55.7746479 C718.078966,51.1651729 714.347726,47.4775928 709.840683,47.4775928 Z M708.326022,57.3971831 L708.326022,61.5641485 L705.924729,61.5641485 L705.924729,49.9851472 L710.505657,49.9851472 C712.759178,49.9851472 714.643269,51.1651729 714.643269,53.6358515 C714.643269,55.3690141 713.719695,56.4384123 712.426691,56.9546735 L714.827984,61.5641485 L712.205033,61.5641485 L710.099284,57.3971831 L708.326022,57.3971831 Z M712.205033,53.7096031 C712.205033,52.5664533 711.244516,52.2714469 710.320942,52.2714469 L708.326022,52.2714469 L708.326022,55.1477593 L710.357885,55.1477593 C711.244516,55.1477593 712.205033,54.7790013 712.205033,53.7096031 Z" id="®" fill="#373B42"></path>
|
||||||
|
<path d="M300.067602,121.690141 L265.385912,69.6676056 L265.385912,121.690141 L249.971827,121.690141 L249.971827,46.2574648 L267.794362,46.2574648 L300.549292,95.4861972 L300.549292,46.2574648 L315.963376,46.2574648 L315.963376,121.690141 L300.067602,121.690141 Z M325.145915,96.0642254 C325.145915,80.7464789 337.766197,69.0895775 353.372958,69.0895775 C368.88338,69.0895775 381.310986,80.4574648 381.310986,95.7752113 C381.310986,111.285634 368.690704,122.846197 353.180282,122.846197 C337.573521,122.846197 325.145915,111.574648 325.145915,96.0642254 Z M340.56,95.8715493 C340.56,103.67493 346.243944,109.069859 353.27662,109.069859 C360.309296,109.069859 365.896901,103.67493 365.896901,95.8715493 C365.896901,88.164507 360.212958,82.7695775 353.180282,82.7695775 C346.147606,82.7695775 340.56,88.164507 340.56,95.8715493 Z M418.157731,70.2456338 L418.157731,84.9853521 C416.134632,84.6 414.015196,84.6 413.34083,84.6 C406.115477,84.6 401.1059,89.6095775 401.1059,99.1470423 L401.1059,121.690141 L386.366182,121.690141 L386.366182,70.2456338 L400.62421,70.2456338 L400.62421,77.76 L400.816886,77.76 C403.610689,71.8833803 408.812942,69.6676056 414.111534,69.6676056 C415.26759,69.6676056 417.098013,69.9566197 418.157731,70.2456338 Z M461.565634,121.690141 L461.565634,115.139155 L461.372958,115.139155 C456.556056,122.171831 448.849014,122.653521 445.380845,122.653521 C430.448451,122.653521 420.910986,109.744225 420.910986,95.8715493 C420.910986,82.8659155 430.833803,69.2822535 445.573521,69.2822535 C448.56,69.2822535 455.689014,69.8602817 460.987606,76.1222535 L461.180282,76.1222535 L461.180282,43.2709859 L476.112676,43.2709859 L476.112676,121.690141 L461.565634,121.690141 Z M461.565634,95.8715493 C461.565634,88.164507 455.88169,82.8659155 448.849014,82.8659155 C441.816338,82.8659155 436.132394,88.164507 436.132394,95.8715493 C436.132394,103.67493 441.816338,109.069859 448.849014,109.069859 C455.88169,109.069859 461.565634,103.67493 461.565634,95.8715493 Z M508.051268,121.690141 L480.787606,46.2574648 L497.646761,46.2574648 L517.20338,103.578592 L536.856338,46.2574648 L553.426479,46.2574648 L526.066479,121.690141 L508.051268,121.690141 Z M614.844507,70.4383099 C614.844507,87.1047887 603.091268,95.1008451 587.291831,95.1008451 L575.442254,95.1008451 L575.442254,121.690141 L559.835493,121.690141 L559.835493,46.2574648 L587.869859,46.2574648 C602.99493,46.2574648 614.844507,54.4461972 614.844507,70.4383099 Z M599.141408,70.823662 C599.141408,63.5019718 592.975775,60.9971831 586.521127,60.9971831 L575.442254,60.9971831 L575.442254,80.5538028 L586.617465,80.5538028 C592.783099,80.5538028 599.141408,77.856338 599.141408,70.823662 Z M672.794366,121.690141 L638.112676,69.6676056 L638.112676,121.690141 L622.698592,121.690141 L622.698592,46.2574648 L640.521127,46.2574648 L673.276056,95.4861972 L673.276056,46.2574648 L688.690141,46.2574648 L688.690141,121.690141 L672.794366,121.690141 Z" id="NordVPN" fill="#373B42"></path>
|
||||||
|
<path d="M18.8134777,157.183099 C6.97925691,140.855593 0,120.766132 0,99.0432916 C0,44.3431921 44.2539653,0 98.8439981,0 C153.434031,0 197.687996,44.3431921 197.687996,99.0432916 C197.687996,120.765991 190.70883,140.855331 178.87475,157.18278 L131.400097,79.9339131 L126.815565,87.6900449 L131.466937,109.261148 L98.8439981,53.3310032 L78.663402,87.4726248 L83.361656,109.261148 L66.2617567,79.9781408 L18.8134777,157.183099 Z" id="logomark" fill="#4687FF"></path>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 5 KiB |
69
src/assets/proton.svg
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="0 0 4520 787" style="enable-background:new 0 0 4520 787;" xml:space="preserve">
|
||||||
|
<style type="text/css">
|
||||||
|
.st0{clip-path:url(#SVGID_00000101076283012793058550000013277607966434688140_);}
|
||||||
|
.st1{fill:#6D4AFF;}
|
||||||
|
.st2{fill:#1B1340;}
|
||||||
|
.st3{fill-rule:evenodd;clip-rule:evenodd;fill:#6D4AFF;}
|
||||||
|
.st4{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_00000143612414778509468690000005354010894178983867_);}
|
||||||
|
.st5{fill:url(#SVGID_00000164510369689970512730000008890151008062097281_);}
|
||||||
|
</style>
|
||||||
|
<g>
|
||||||
|
<defs>
|
||||||
|
<rect id="SVGID_1_" width="4520" height="787"/>
|
||||||
|
</defs>
|
||||||
|
<clipPath id="SVGID_00000124143326424118090040000000686822535870151078_">
|
||||||
|
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
||||||
|
</clipPath>
|
||||||
|
<g style="clip-path:url(#SVGID_00000124143326424118090040000000686822535870151078_);">
|
||||||
|
<path class="st1" d="M3909.1,150h-223.4v483.9h88.5V513.4c0-11.7,4.7-23,13-31.3c8.3-8.3,19.5-12.9,31.2-12.9h90.7
|
||||||
|
c42.2,0,82.7-16.8,112.6-46.6c29.9-29.9,46.7-70.4,46.7-112.6c0.1-21-4-41.8-11.9-61.2c-8-19.4-19.7-37-34.5-51.9
|
||||||
|
c-14.8-14.9-32.4-26.7-51.8-34.7C3950.8,154.1,3930,150,3909.1,150L3909.1,150z M3978.7,308.8c0,9.9-1.9,19.7-5.8,28.9
|
||||||
|
c-3.8,9.2-9.4,17.5-16.4,24.5c-7,7-15.4,12.6-24.5,16.3c-9.2,3.8-19,5.7-28.9,5.7h-129.4V233.4h129.4c10,0,19.8,2,29,5.8
|
||||||
|
c9.2,3.8,17.5,9.4,24.5,16.5c7,7,12.6,15.4,16.3,24.6c3.8,9.2,5.7,19.1,5.6,29L3978.7,308.8z"/>
|
||||||
|
<path class="st1" d="M3374.9,632.1l-178.3-483.5h100.7l117.3,346c4.6,12.4,7.9,25.2,9.9,38.2h1c1.4-13.2,4.8-26,9.9-38.2
|
||||||
|
l117.6-346h101.3l-179.2,483.5H3374.9z"/>
|
||||||
|
<path class="st1" d="M4101.3,632.1V148.6h77.5l228.3,299.9c8.2,10.3,15.3,21.5,21.3,33.2h1.4c-1.5-14.6-2.3-29.2-2.2-43.9V148.6
|
||||||
|
h91.5v483.5h-77.5l-228.9-299.9c-8.1-10.4-15.2-21.5-21.2-33.2h-0.8c1.2,14.6,1.7,29.2,1.5,43.9v289.3H4101.3z"/>
|
||||||
|
<path class="st2" d="M1434.2,147.2h-223.4v483.9h88.5V510.6c0-11.7,4.7-23,12.9-31.3c8.3-8.3,19.5-12.9,31.2-12.9h90.7
|
||||||
|
c42.2,0,82.7-16.8,112.6-46.6s46.6-70.4,46.6-112.6c0.1-21-4-41.8-11.9-61.2c-8-19.4-19.7-37-34.5-51.9
|
||||||
|
c-14.8-14.9-32.4-26.7-51.8-34.7C1475.9,151.3,1455.2,147.2,1434.2,147.2L1434.2,147.2z M1503.9,306c0,9.9-1.9,19.7-5.8,28.9
|
||||||
|
c-3.8,9.2-9.4,17.5-16.4,24.5c-7,7-15.3,12.6-24.5,16.3c-9.2,3.8-19,5.7-28.9,5.7h-129.4V230.6h129.4c9.9,0,19.8,2,29,5.8
|
||||||
|
c9.2,3.8,17.5,9.4,24.5,16.5c7,7,12.6,15.4,16.3,24.6c3.8,9.2,5.7,19.1,5.6,29L1503.9,306z"/>
|
||||||
|
<path class="st2" d="M1607.4,631.3v-192c0-78.3,45.8-140.6,137.3-140.6c14.7-0.2,29.4,1.4,43.7,4.8v79
|
||||||
|
c-10.4-0.7-19.9-0.7-23.6-0.7c-48.5,0-69.7,22.2-69.7,67.2v182.4H1607.4z"/>
|
||||||
|
<path class="st2" d="M1814.6,468.3c0-96.3,72.8-169.7,174-169.7c101.2,0,173.9,73.5,173.9,169.7c0,96.3-72.8,170.5-173.9,170.5
|
||||||
|
S1814.6,564.7,1814.6,468.3z M2075.9,468.3c0-54.7-36.7-93.6-87.3-93.6c-50.6,0-87.4,38.8-87.4,93.6c0,54.7,36.7,93.6,87.4,93.6
|
||||||
|
C2039.3,561.9,2075.9,523.8,2075.9,468.3L2075.9,468.3z"/>
|
||||||
|
<path class="st2" d="M2417.5,375.4h-94.9v121.3c0,42.3,15.2,61.6,58.8,61.6c4.2,0,14.6,0,27.8-0.7v71.5
|
||||||
|
c-16.7,4.8-33.9,7.3-51.3,7.6c-73.5,0-123.4-44.3-123.4-128.2V375.4h-58.8v-69.7h14.6c11.7,0,23-4.7,31.2-12.9
|
||||||
|
c8.3-8.3,12.9-19.5,12.9-31.2v-66.3h88.1v110.2h94.9V375.4z"/>
|
||||||
|
<path class="st2" d="M2443.9,468.3c0-96.3,72.8-169.7,173.9-169.7c101.1,0,174,73.5,174,169.7c0,96.3-72.8,170.5-174,170.5
|
||||||
|
S2443.9,564.7,2443.9,468.3z M2705.2,468.3c0-54.7-36.7-93.6-87.4-93.6s-87.3,38.8-87.3,93.6c0,54.7,36.7,93.6,87.3,93.6
|
||||||
|
C2668.4,561.9,2705.2,523.8,2705.2,468.3z"/>
|
||||||
|
<path class="st2" d="M2837.5,631.3V445.8c0-86,54.8-147.6,152.5-147.6c97.8,0,151.8,62,151.8,147.6v185h-87.3V453.1
|
||||||
|
c0-47.8-21.5-77.6-64.5-77.6s-64.4,29.9-64.4,77.6v178.2H2837.5z"/>
|
||||||
|
<path class="st3" d="M346.1,740.3c32.8,59.3,116.9,62.6,154,5.9l346.7-528.4c36.8-56,1.6-131.2-65-138.8L100.4,0.9
|
||||||
|
C27.7-7.5-24,69.8,11.3,133.8L346.1,740.3z"/>
|
||||||
|
|
||||||
|
<linearGradient id="SVGID_00000083796956185287615240000010885015769944861357_" gradientUnits="userSpaceOnUse" x1="536.4819" y1="1113.179" x2="292.8189" y2="64.084" gradientTransform="matrix(1 0 0 -1 0 788)">
|
||||||
|
<stop offset="0.4799" style="stop-color:#24ECC6;stop-opacity:0"/>
|
||||||
|
<stop offset="0.9944" style="stop-color:#24ECC6"/>
|
||||||
|
</linearGradient>
|
||||||
|
<path style="fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_00000083796956185287615240000010885015769944861357_);" d="
|
||||||
|
M346.1,740.3c32.8,59.3,116.9,62.6,154,5.9l346.7-528.4c36.8-56,1.6-131.2-65-138.8L100.4,0.8C27.8-7.5-24,69.7,11.4,133.7
|
||||||
|
L346.1,740.3z"/>
|
||||||
|
|
||||||
|
<linearGradient id="SVGID_00000005978595599017039650000002259067875620926859_" gradientUnits="userSpaceOnUse" x1="759.6771" y1="79.3122" x2="219.4247" y2="1003.199" gradientTransform="matrix(1 0 0 -1 0 788)">
|
||||||
|
<stop offset="6.601250e-02" style="stop-color:#ABFFEF"/>
|
||||||
|
<stop offset="0.4499" style="stop-color:#CAC9FF"/>
|
||||||
|
<stop offset="1" style="stop-color:#6D4AFF"/>
|
||||||
|
</linearGradient>
|
||||||
|
<path style="fill:url(#SVGID_00000005978595599017039650000002259067875620926859_);" d="M396.4,638.7L365.6,685
|
||||||
|
c-12.5,18.7-40.4,17.6-51.2-2.1l31.7,57.5c5.7,10.2,12.8,18.8,21.1,25.7l0,0c39.3,33,102.2,27.1,133-19.8l346.7-528.4
|
||||||
|
c36.8-56,1.6-131.2-65-138.8L100.4,0.9C27.7-7.5-24,69.8,11.3,133.8l2.7,4.9l580.1,67.1c37,4.3,56.5,46,36,77.1L396.4,638.7z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 5.3 KiB |
99
src/background/attachDebugger.ts
Normal file
|
|
@ -0,0 +1,99 @@
|
||||||
|
const attachDebugger = (tabId: number) => {
|
||||||
|
chrome.storage.local.get(
|
||||||
|
[
|
||||||
|
'ipData',
|
||||||
|
'timezone',
|
||||||
|
'timezoneMatchIP',
|
||||||
|
'lat',
|
||||||
|
'latitudeMatchIP',
|
||||||
|
'lon',
|
||||||
|
'longitudeMatchIP',
|
||||||
|
'locale',
|
||||||
|
'localeMatchIP',
|
||||||
|
'userAgent',
|
||||||
|
'platform',
|
||||||
|
'locationBrowserDefault',
|
||||||
|
'userAgentBrowserDefault',
|
||||||
|
],
|
||||||
|
(storage) => {
|
||||||
|
if (
|
||||||
|
(storage.timezone ||
|
||||||
|
storage.lat ||
|
||||||
|
storage.lon ||
|
||||||
|
storage.locale ||
|
||||||
|
storage.userAgent) &&
|
||||||
|
((storage.locationBrowserDefault !== undefined && !storage.locationBrowserDefault) || (storage.userAgentBrowserDefault !== undefined && !storage.userAgentBrowserDefault))
|
||||||
|
) {
|
||||||
|
|
||||||
|
chrome.debugger.attach({ tabId: tabId }, '1.3', () => {
|
||||||
|
if (!chrome.runtime.lastError) {
|
||||||
|
if (!storage.locationBrowserDefault) {
|
||||||
|
if (storage.timezone) {
|
||||||
|
chrome.debugger.sendCommand(
|
||||||
|
{ tabId: tabId },
|
||||||
|
'Emulation.setTimezoneOverride',
|
||||||
|
{
|
||||||
|
timezoneId: storage.timezone,
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
if (
|
||||||
|
chrome.runtime.lastError &&
|
||||||
|
chrome.runtime.lastError.message?.includes(
|
||||||
|
'Timezone override is already in effect'
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
chrome.debugger.detach({ tabId })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (storage.locale) {
|
||||||
|
chrome.debugger.sendCommand(
|
||||||
|
{ tabId: tabId },
|
||||||
|
'Emulation.setLocaleOverride',
|
||||||
|
{
|
||||||
|
locale: storage.locale,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (storage.lat || storage.lon) {
|
||||||
|
chrome.debugger.sendCommand(
|
||||||
|
{ tabId: tabId },
|
||||||
|
'Emulation.setGeolocationOverride',
|
||||||
|
{
|
||||||
|
latitude: storage.lat
|
||||||
|
? parseFloat(storage.lat)
|
||||||
|
: storage.ipData.lat,
|
||||||
|
longitude: storage.lon
|
||||||
|
? parseFloat(storage.lon)
|
||||||
|
: storage.ipData.lon,
|
||||||
|
accuracy: 1,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
!storage.userAgentBrowserDefault &&
|
||||||
|
(storage.userAgent || storage.platform)
|
||||||
|
) {
|
||||||
|
chrome.debugger.sendCommand(
|
||||||
|
{ tabId: tabId },
|
||||||
|
'Emulation.setUserAgentOverride',
|
||||||
|
{
|
||||||
|
userAgent: storage.userAgent,
|
||||||
|
platform: storage.platform,
|
||||||
|
}
|
||||||
|
// { acceptLanguage: "en-CA" },
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default attachDebugger
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import attachDebugger from '../utils/attachDebugger'
|
import attachDebugger from './attachDebugger'
|
||||||
|
|
||||||
const attachTab = (tabId: number) => {
|
const attachTab = (tabId: number) => {
|
||||||
chrome.debugger.getTargets((tabs) => {
|
chrome.debugger.getTargets((tabs) => {
|
||||||
|
|
@ -1,13 +1,15 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Vytal - Spoof Timezone, Geolocation & Locale",
|
"version": "2.1.8",
|
||||||
"version": "2.1.4",
|
"name": "__MSG_extName__",
|
||||||
"description": "Spoof time zone, geolocation, locale and user agent. Match location data to your VPN ip address and access region-restricted content",
|
"description": "__MSG_extDesc__",
|
||||||
|
"author": "__MSG_extName__",
|
||||||
|
"default_locale": "en",
|
||||||
"permissions": ["storage", "debugger"],
|
"permissions": ["storage", "debugger"],
|
||||||
"background": { "service_worker": "background.bundle.js" },
|
"background": { "service_worker": "background.bundle.js" },
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup.html",
|
"default_popup": "popup.html",
|
||||||
"default_icon": "icon32.png"
|
"default_icon": "icon48.png"
|
||||||
},
|
},
|
||||||
"icons": {
|
"icons": {
|
||||||
"128": "icon128.png"
|
"128": "icon128.png"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { ThemeProvider, Flex, Box } from 'theme-ui'
|
import { ThemeProvider, Flex, Box } from 'theme-ui'
|
||||||
import { theme } from '../theme'
|
import { theme } from 'theme'
|
||||||
import {
|
import {
|
||||||
Wifi,
|
Wifi,
|
||||||
MessageSquare,
|
MessageSquare,
|
||||||
|
|
@ -13,9 +13,10 @@ import {
|
||||||
} from 'react-feather'
|
} from 'react-feather'
|
||||||
import VpnIcon from '../assets/vpnIcon.svg'
|
import VpnIcon from '../assets/vpnIcon.svg'
|
||||||
import TabItem from './TabItem'
|
import TabItem from './TabItem'
|
||||||
import LocationPage from './Pages/LocationPage'
|
import LocationPage from './pages/locationPage'
|
||||||
import UserAgentPage from './Pages/UserAgentPage'
|
import UserAgentPage from './pages/userAgentPage'
|
||||||
import SettingsPage from './Pages/SettingsPage'
|
import VpnPage from './pages/vpnPage'
|
||||||
|
import SettingsPage from './pages/settingsPage'
|
||||||
import '../assets/global.css'
|
import '../assets/global.css'
|
||||||
|
|
||||||
const Popup = () => {
|
const Popup = () => {
|
||||||
|
|
@ -76,6 +77,7 @@ const Popup = () => {
|
||||||
<Box sx={{ m: '16px', width: '100%' }}>
|
<Box sx={{ m: '16px', width: '100%' }}>
|
||||||
<LocationPage tab={tab} />
|
<LocationPage tab={tab} />
|
||||||
<UserAgentPage tab={tab} />
|
<UserAgentPage tab={tab} />
|
||||||
|
{/* <VpnPage tab={tab} /> */}
|
||||||
<SettingsPage tab={tab} />
|
<SettingsPage tab={tab} />
|
||||||
</Box>
|
</Box>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
@ -9,7 +9,7 @@ interface CheckBoxProps {
|
||||||
|
|
||||||
const CheckBox = ({ title, onChange, checked }: CheckBoxProps) => {
|
const CheckBox = ({ title, onChange, checked }: CheckBoxProps) => {
|
||||||
return (
|
return (
|
||||||
<Label sx={{ mb: '8px' }}>
|
<Label sx={{ mb: '8px', cursor: 'pointer' }}>
|
||||||
<Checkbox onChange={onChange} checked={checked} />
|
<Checkbox onChange={onChange} checked={checked} />
|
||||||
{title}
|
{title}
|
||||||
</Label>
|
</Label>
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Dispatch, SetStateAction, ChangeEvent, useMemo } from 'react'
|
import { Dispatch, SetStateAction, ChangeEvent, useMemo } from 'react'
|
||||||
import { Label, Input } from 'theme-ui'
|
import { Label, Input, Box } from 'theme-ui'
|
||||||
import detachDebugger from '../../utils/detachDebugger'
|
import detachDebugger from 'utils/detachDebugger'
|
||||||
import debounce from 'lodash.debounce'
|
import debounce from 'lodash.debounce'
|
||||||
|
|
||||||
interface DebouncedInputProps {
|
interface DebouncedInputProps {
|
||||||
|
|
@ -10,6 +10,7 @@ interface DebouncedInputProps {
|
||||||
setValue: Dispatch<SetStateAction<string>>
|
setValue: Dispatch<SetStateAction<string>>
|
||||||
onChange: () => void
|
onChange: () => void
|
||||||
mb?: string
|
mb?: string
|
||||||
|
type?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const DebouncedInput = ({
|
const DebouncedInput = ({
|
||||||
|
|
@ -19,6 +20,7 @@ const DebouncedInput = ({
|
||||||
setValue,
|
setValue,
|
||||||
onChange,
|
onChange,
|
||||||
mb,
|
mb,
|
||||||
|
type = 'text',
|
||||||
}: DebouncedInputProps) => {
|
}: DebouncedInputProps) => {
|
||||||
const debouncedChangeHandler = useMemo(
|
const debouncedChangeHandler = useMemo(
|
||||||
() =>
|
() =>
|
||||||
|
|
@ -36,10 +38,16 @@ const DebouncedInput = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<Box>
|
||||||
<Label htmlFor={name}>{title}</Label>
|
<Label htmlFor={name}>{title}</Label>
|
||||||
<Input name={name} value={value} onChange={changeInputText} mb={mb} />
|
<Input
|
||||||
</>
|
name={name}
|
||||||
|
value={value}
|
||||||
|
onChange={changeInputText}
|
||||||
|
mb={mb}
|
||||||
|
type={type}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1,29 +1,32 @@
|
||||||
import { useState, useEffect, ChangeEvent, useCallback } from 'react'
|
import { useState, useEffect, ChangeEvent, useCallback } from 'react'
|
||||||
import { Box, Flex, Label, Radio, Select } from 'theme-ui'
|
import { Box, Flex, Label, Select } from 'theme-ui'
|
||||||
import Page from '../../Components/Page'
|
import Page from 'popup/components/Page'
|
||||||
import DebouncedInput from '../../Components/DebouncedInput'
|
import Checkbox from 'popup/components/CheckBox'
|
||||||
import detachDebugger from '../../../utils/detachDebugger'
|
import DebouncedInput from 'popup/components/DebouncedInput'
|
||||||
import countryLocales from '../../../utils/countryLocales'
|
import detachDebugger from 'utils/detachDebugger'
|
||||||
import configurations from '../../../utils/configurations'
|
import countryLocales from 'utils/countryLocales'
|
||||||
import FooterLink from '../../Components/FooterLink'
|
import configurations from 'utils/configurations'
|
||||||
import { ipData } from '../../../types'
|
import getIp from 'utils/getIp'
|
||||||
import getIp from '../../../utils/getIp'
|
import { ipData } from 'types'
|
||||||
import { RotateCw } from 'react-feather'
|
import { RotateCw } from 'react-feather'
|
||||||
|
import { polyfillCountryFlagEmojis } from "country-flag-emoji-polyfill";
|
||||||
|
|
||||||
interface LocationPageProps {
|
interface LocationPageProps {
|
||||||
tab: string
|
tab: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const LocationPage = ({ tab }: LocationPageProps) => {
|
const LocationPage = ({ tab }: LocationPageProps) => {
|
||||||
|
const [browserDefault, setBrowserDefault] = useState(true)
|
||||||
const [ipData, setIpData] = useState<ipData>()
|
const [ipData, setIpData] = useState<ipData>()
|
||||||
const [ipInfo, setIpInfo] = useState('loading...')
|
const [ipInfo, setIpInfo] = useState('loading...')
|
||||||
const [locationType, setLocationType] = useState('')
|
|
||||||
const [timezone, setTimezone] = useState('')
|
const [timezone, setTimezone] = useState('')
|
||||||
const [locale, setLocale] = useState('')
|
const [locale, setLocale] = useState('')
|
||||||
const [lat, setLatitude] = useState('')
|
const [lat, setLatitude] = useState('')
|
||||||
const [lon, setLongitude] = useState('')
|
const [lon, setLongitude] = useState('')
|
||||||
const [configuration, setConfiguration] = useState('custom')
|
const [configuration, setConfiguration] = useState('custom')
|
||||||
|
|
||||||
|
polyfillCountryFlagEmojis();
|
||||||
|
|
||||||
const reloadIp = useCallback(() => {
|
const reloadIp = useCallback(() => {
|
||||||
setIpInfo('loading...')
|
setIpInfo('loading...')
|
||||||
getIp()
|
getIp()
|
||||||
|
|
@ -42,9 +45,19 @@ const LocationPage = ({ tab }: LocationPageProps) => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
chrome.storage.local.get(
|
chrome.storage.local.get(
|
||||||
['locationType', 'configuration', 'timezone', 'locale', 'lat', 'lon'],
|
[
|
||||||
|
'locationBrowserDefault',
|
||||||
|
'configuration',
|
||||||
|
'timezone',
|
||||||
|
'locale',
|
||||||
|
'lat',
|
||||||
|
'lon',
|
||||||
|
],
|
||||||
(storage) => {
|
(storage) => {
|
||||||
if (storage.locationType === 'matchIp' && ipData) {
|
storage.configuration && setConfiguration(storage.configuration)
|
||||||
|
storage.locationBrowserDefault !== undefined &&
|
||||||
|
setBrowserDefault(storage.locationBrowserDefault)
|
||||||
|
if (storage.configuration === 'matchIp' && ipData) {
|
||||||
setTimezone(ipData.timezone)
|
setTimezone(ipData.timezone)
|
||||||
setLocale(countryLocales[ipData.countryCode].locale)
|
setLocale(countryLocales[ipData.countryCode].locale)
|
||||||
setLatitude(`${ipData.lat}`)
|
setLatitude(`${ipData.lat}`)
|
||||||
|
|
@ -55,37 +68,31 @@ const LocationPage = ({ tab }: LocationPageProps) => {
|
||||||
lat: ipData.lat,
|
lat: ipData.lat,
|
||||||
lon: ipData.lon,
|
lon: ipData.lon,
|
||||||
})
|
})
|
||||||
} else if (storage.locationType === 'custom') {
|
} else {
|
||||||
storage.configuration && setConfiguration(storage.configuration)
|
|
||||||
storage.timezone && setTimezone(storage.timezone)
|
storage.timezone && setTimezone(storage.timezone)
|
||||||
storage.locale && setLocale(storage.locale)
|
storage.locale && setLocale(storage.locale)
|
||||||
storage.lat && setLatitude(storage.lat)
|
storage.lat && setLatitude(storage.lat)
|
||||||
storage.lon && setLongitude(storage.lon)
|
storage.lon && setLongitude(storage.lon)
|
||||||
}
|
}
|
||||||
storage.locationType
|
|
||||||
? setLocationType(storage.locationType)
|
|
||||||
: setLocationType('default')
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}, [ipData])
|
}, [ipData])
|
||||||
|
|
||||||
const changeType = (e: ChangeEvent<HTMLInputElement>) => {
|
const changeBrowserDefault = () => {
|
||||||
detachDebugger()
|
detachDebugger()
|
||||||
setLocationType(e.target.value)
|
|
||||||
chrome.storage.local.set({ locationType: e.target.value })
|
|
||||||
|
|
||||||
if (e.target.value === 'default') {
|
|
||||||
setTimezone('')
|
|
||||||
setLocale('')
|
|
||||||
setLatitude('')
|
|
||||||
setLongitude('')
|
|
||||||
chrome.storage.local.set({
|
chrome.storage.local.set({
|
||||||
timezone: '',
|
locationBrowserDefault: !browserDefault,
|
||||||
locale: '',
|
|
||||||
lat: '',
|
|
||||||
lon: '',
|
|
||||||
})
|
})
|
||||||
} else if (e.target.value === 'matchIp') {
|
setBrowserDefault(!browserDefault)
|
||||||
|
}
|
||||||
|
|
||||||
|
const changeConfiguration = (e: ChangeEvent<HTMLSelectElement>) => {
|
||||||
|
detachDebugger()
|
||||||
|
setConfiguration(e.target.value)
|
||||||
|
chrome.storage.local.set({
|
||||||
|
configuration: e.target.value,
|
||||||
|
})
|
||||||
|
if (e.target.value === 'matchIp') {
|
||||||
if (ipData) {
|
if (ipData) {
|
||||||
setTimezone(ipData.timezone)
|
setTimezone(ipData.timezone)
|
||||||
setLocale(countryLocales[ipData.countryCode].locale)
|
setLocale(countryLocales[ipData.countryCode].locale)
|
||||||
|
|
@ -99,28 +106,17 @@ const LocationPage = ({ tab }: LocationPageProps) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (e.target.value === 'custom') {
|
} else if (e.target.value === 'custom') {
|
||||||
if (configuration !== 'custom') {
|
setTimezone('')
|
||||||
setTimezone(configurations[configuration].timezone)
|
setLocale('')
|
||||||
setLocale(configurations[configuration].locale)
|
setLatitude('')
|
||||||
setLatitude(configurations[configuration].lat)
|
setLongitude('')
|
||||||
setLongitude(configurations[configuration].lon)
|
|
||||||
chrome.storage.local.set({
|
chrome.storage.local.set({
|
||||||
timezone: configurations[configuration].timezone,
|
timezone: '',
|
||||||
locale: configurations[configuration].locale,
|
locale: '',
|
||||||
lat: configurations[configuration].lat,
|
lat: '',
|
||||||
lon: configurations[configuration].lon,
|
lon: '',
|
||||||
})
|
})
|
||||||
}
|
} else {
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const changeConfiguration = (e: ChangeEvent<HTMLSelectElement>) => {
|
|
||||||
detachDebugger()
|
|
||||||
setConfiguration(e.target.value)
|
|
||||||
chrome.storage.local.set({
|
|
||||||
configuration: e.target.value,
|
|
||||||
})
|
|
||||||
if (e.target.value !== 'custom') {
|
|
||||||
setTimezone(configurations[e.target.value].timezone)
|
setTimezone(configurations[e.target.value].timezone)
|
||||||
setLocale(configurations[e.target.value].locale)
|
setLocale(configurations[e.target.value].locale)
|
||||||
setLatitude(configurations[e.target.value].lat)
|
setLatitude(configurations[e.target.value].lat)
|
||||||
|
|
@ -135,12 +131,10 @@ const LocationPage = ({ tab }: LocationPageProps) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const changeInputText = () => {
|
const changeInputText = () => {
|
||||||
if (locationType !== 'custom' || configuration !== 'custom') {
|
if (configuration !== 'custom') {
|
||||||
setConfiguration('custom')
|
setConfiguration('custom')
|
||||||
setLocationType('custom')
|
|
||||||
chrome.storage.local.set({
|
chrome.storage.local.set({
|
||||||
configuration: 'custom',
|
configuration: 'custom',
|
||||||
locationType: 'custom',
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -155,41 +149,17 @@ const LocationPage = ({ tab }: LocationPageProps) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page isCurrentTab={tab === 'location'} title={'Location Data'}>
|
<Page isCurrentTab={tab === 'location'} title={'Location Data'}>
|
||||||
<Flex
|
<Checkbox
|
||||||
|
title="Use browser default"
|
||||||
|
onChange={changeBrowserDefault}
|
||||||
|
checked={browserDefault}
|
||||||
|
/>
|
||||||
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
justifyContent: 'space-between',
|
opacity: browserDefault ? '0.5' : '1',
|
||||||
mb: '8px',
|
pointerEvents: browserDefault ? 'none' : 'auto',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Label>
|
|
||||||
<Radio
|
|
||||||
name="locationType"
|
|
||||||
value="default"
|
|
||||||
onChange={changeType}
|
|
||||||
checked={locationType === 'default'}
|
|
||||||
/>
|
|
||||||
Default
|
|
||||||
</Label>
|
|
||||||
<Label>
|
|
||||||
<Radio
|
|
||||||
name="locationType"
|
|
||||||
value="matchIp"
|
|
||||||
onChange={changeType}
|
|
||||||
checked={locationType === 'matchIp'}
|
|
||||||
/>
|
|
||||||
Match IP
|
|
||||||
</Label>
|
|
||||||
<Label>
|
|
||||||
<Radio
|
|
||||||
name="locationType"
|
|
||||||
value="custom"
|
|
||||||
onChange={changeType}
|
|
||||||
checked={locationType === 'custom'}
|
|
||||||
/>
|
|
||||||
Custom
|
|
||||||
</Label>
|
|
||||||
</Flex>
|
|
||||||
{locationType === 'matchIp' && (
|
|
||||||
<Flex
|
<Flex
|
||||||
sx={{
|
sx={{
|
||||||
border: '1px solid',
|
border: '1px solid',
|
||||||
|
|
@ -225,9 +195,6 @@ const LocationPage = ({ tab }: LocationPageProps) => {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
)}
|
|
||||||
{locationType === 'custom' && (
|
|
||||||
<>
|
|
||||||
<Label htmlFor="configuration">Configuration</Label>
|
<Label htmlFor="configuration">Configuration</Label>
|
||||||
<Select
|
<Select
|
||||||
name="configuration"
|
name="configuration"
|
||||||
|
|
@ -235,15 +202,16 @@ const LocationPage = ({ tab }: LocationPageProps) => {
|
||||||
onChange={changeConfiguration}
|
onChange={changeConfiguration}
|
||||||
mb={'8px'}
|
mb={'8px'}
|
||||||
>
|
>
|
||||||
|
<option value="matchIp">Match IP Address</option>
|
||||||
<option value="custom">Custom</option>
|
<option value="custom">Custom</option>
|
||||||
|
<optgroup label="Locations">
|
||||||
{Object.keys(configurations).map((key) => (
|
{Object.keys(configurations).map((key) => (
|
||||||
<option value={key} key={key}>
|
<option value={key} key={key}>
|
||||||
{configurations[key].name}
|
{configurations[key].name}
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
|
</optgroup>
|
||||||
</Select>
|
</Select>
|
||||||
</>
|
|
||||||
)}
|
|
||||||
<DebouncedInput
|
<DebouncedInput
|
||||||
name="timezone"
|
name="timezone"
|
||||||
title="Timezone"
|
title="Timezone"
|
||||||
|
|
@ -258,12 +226,14 @@ const LocationPage = ({ tab }: LocationPageProps) => {
|
||||||
setValue={setLocale}
|
setValue={setLocale}
|
||||||
onChange={changeInputText}
|
onChange={changeInputText}
|
||||||
/>
|
/>
|
||||||
|
<Flex sx={{ gap: '12px' }}>
|
||||||
<DebouncedInput
|
<DebouncedInput
|
||||||
name="lat"
|
name="lat"
|
||||||
title="Latitude"
|
title="Latitude"
|
||||||
value={lat}
|
value={lat}
|
||||||
setValue={setLatitude}
|
setValue={setLatitude}
|
||||||
onChange={changeInputText}
|
onChange={changeInputText}
|
||||||
|
type="number"
|
||||||
/>
|
/>
|
||||||
<DebouncedInput
|
<DebouncedInput
|
||||||
name="lon"
|
name="lon"
|
||||||
|
|
@ -272,8 +242,22 @@ const LocationPage = ({ tab }: LocationPageProps) => {
|
||||||
setValue={setLongitude}
|
setValue={setLongitude}
|
||||||
onChange={changeInputText}
|
onChange={changeInputText}
|
||||||
mb="12px"
|
mb="12px"
|
||||||
|
type="number"
|
||||||
/>
|
/>
|
||||||
<FooterLink />
|
</Flex>
|
||||||
|
</Box>
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
color: 'text',
|
||||||
|
mb: '8px',
|
||||||
|
fontSize: '11px',
|
||||||
|
position: 'fixed',
|
||||||
|
bottom: '0',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Vytal does not change your IP address. To change your IP address you
|
||||||
|
will need a VPN or proxy.
|
||||||
|
</Box>
|
||||||
</Page>
|
</Page>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -5,7 +5,7 @@ interface InfoItemProps {
|
||||||
children: React.ReactNode
|
children: React.ReactNode
|
||||||
}
|
}
|
||||||
|
|
||||||
const SettingsPage = ({ title, children }: InfoItemProps) => {
|
const InfoItem = ({ title, children }: InfoItemProps) => {
|
||||||
return (
|
return (
|
||||||
<Box sx={{ mb: '12px' }}>
|
<Box sx={{ mb: '12px' }}>
|
||||||
<Flex sx={{ fontWeight: '700', mb: '2px' }}>{title}</Flex>
|
<Flex sx={{ fontWeight: '700', mb: '2px' }}>{title}</Flex>
|
||||||
|
|
@ -14,4 +14,4 @@ const SettingsPage = ({ title, children }: InfoItemProps) => {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SettingsPage
|
export default InfoItem
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
import { Link, Text } from 'theme-ui'
|
import { Link, Text } from 'theme-ui'
|
||||||
import Page from '../../Components/Page'
|
import Page from 'popup/components/Page'
|
||||||
import InfoItem from './InfoItem'
|
import InfoItem from './InfoItem'
|
||||||
|
|
||||||
interface SystemPageProps {
|
interface SettingsPageProps {
|
||||||
tab: string
|
tab: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const SettingsPage = ({ tab }: SystemPageProps) => {
|
const SettingsPage = ({ tab }: SettingsPageProps) => {
|
||||||
return (
|
return (
|
||||||
<Page isCurrentTab={tab === 'settings'} title={'Info'}>
|
<Page isCurrentTab={tab === 'settings'} title={'Info'}>
|
||||||
<InfoItem title={'Hide Debugging Notification Bar'}>
|
<InfoItem title={'Hide Debugging Notification Bar'}>
|
||||||
122
src/popup/pages/userAgentPage/index.tsx
Normal file
|
|
@ -0,0 +1,122 @@
|
||||||
|
import { useState, useEffect, ChangeEvent } from 'react'
|
||||||
|
import { Box, Label, Select } from 'theme-ui'
|
||||||
|
import Checkbox from 'popup/components/CheckBox'
|
||||||
|
import DebouncedInput from 'popup/components/DebouncedInput'
|
||||||
|
import userAgents from 'utils/userAgents'
|
||||||
|
import detachDebugger from 'utils/detachDebugger'
|
||||||
|
import Page from 'popup/components/Page'
|
||||||
|
|
||||||
|
interface UserAgentPageProps {
|
||||||
|
tab: string
|
||||||
|
}
|
||||||
|
|
||||||
|
const UserAgentPage = ({ tab }: UserAgentPageProps) => {
|
||||||
|
const [browserDefault, setBrowserDefault] = useState(true)
|
||||||
|
const [userAgentInfo, setUserAgentInfo] = useState('')
|
||||||
|
const [userAgent, setUserAgent] = useState('')
|
||||||
|
const [platform, setPlatform] = useState('')
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
chrome.storage.local.get(
|
||||||
|
['userAgentBrowserDefault', 'userAgentInfo', 'userAgent', 'platform'],
|
||||||
|
(storage) => {
|
||||||
|
storage.userAgentBrowserDefault !== undefined &&
|
||||||
|
setBrowserDefault(storage.userAgentBrowserDefault)
|
||||||
|
storage.userAgentInfo && setUserAgentInfo(storage.userAgentInfo)
|
||||||
|
storage.userAgent && setUserAgent(storage.userAgent)
|
||||||
|
storage.platform && setPlatform(storage.platform)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}, [])
|
||||||
|
|
||||||
|
const changeBrowserDefault = () => {
|
||||||
|
detachDebugger()
|
||||||
|
chrome.storage.local.set({
|
||||||
|
userAgentBrowserDefault: !browserDefault,
|
||||||
|
})
|
||||||
|
setBrowserDefault(!browserDefault)
|
||||||
|
}
|
||||||
|
|
||||||
|
const changeUserAgentInfo = async (e: ChangeEvent<HTMLSelectElement>) => {
|
||||||
|
detachDebugger()
|
||||||
|
setUserAgentInfo(e.target.value)
|
||||||
|
chrome.storage.local.set({
|
||||||
|
userAgentInfo: e.target.value,
|
||||||
|
})
|
||||||
|
|
||||||
|
if (e.target.value !== 'custom') {
|
||||||
|
const userAgentObj = JSON.parse(e.target.value)
|
||||||
|
setUserAgent(userAgentObj.value)
|
||||||
|
setPlatform(userAgentObj.platform)
|
||||||
|
chrome.storage.local.set({
|
||||||
|
userAgent: userAgentObj.value,
|
||||||
|
platform: userAgentObj.platform,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const changeTextInput = () => {
|
||||||
|
if (userAgentInfo !== 'custom') {
|
||||||
|
setUserAgentInfo('custom')
|
||||||
|
chrome.storage.local.set({
|
||||||
|
userAgentType: 'custom',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Page isCurrentTab={tab === 'userAgent'} title={'User Agent'}>
|
||||||
|
<Checkbox
|
||||||
|
title="Use browser default"
|
||||||
|
onChange={changeBrowserDefault}
|
||||||
|
checked={browserDefault}
|
||||||
|
/>
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
opacity: browserDefault ? '0.5' : '1',
|
||||||
|
pointerEvents: browserDefault ? 'none' : 'auto',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Box sx={{ width: '100%' }}>
|
||||||
|
<Label htmlFor="type">Type</Label>
|
||||||
|
<Select
|
||||||
|
name="type"
|
||||||
|
id="type"
|
||||||
|
value={userAgentInfo}
|
||||||
|
onChange={changeUserAgentInfo}
|
||||||
|
mb={'8px'}
|
||||||
|
>
|
||||||
|
<option value="custom">Custom</option>
|
||||||
|
{Object.keys(userAgents).map((key) => (
|
||||||
|
<optgroup key={key} label={userAgents[key].title}>
|
||||||
|
{userAgents[key].values.map((key: any) => (
|
||||||
|
<option key={key.value} value={JSON.stringify(key)}>
|
||||||
|
{key.title}
|
||||||
|
</option>
|
||||||
|
))}
|
||||||
|
</optgroup>
|
||||||
|
))}
|
||||||
|
</Select>
|
||||||
|
</Box>
|
||||||
|
<DebouncedInput
|
||||||
|
name="userAgent"
|
||||||
|
title="User Agent"
|
||||||
|
value={userAgent}
|
||||||
|
setValue={setUserAgent}
|
||||||
|
onChange={changeTextInput}
|
||||||
|
mb="12px"
|
||||||
|
/>
|
||||||
|
<DebouncedInput
|
||||||
|
name="platform"
|
||||||
|
title="Platform"
|
||||||
|
value={platform}
|
||||||
|
setValue={setPlatform}
|
||||||
|
onChange={changeTextInput}
|
||||||
|
mb="12px"
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
|
</Page>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default UserAgentPage
|
||||||
43
src/popup/pages/vpnPage/VpnItem.tsx
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
import { Box, Link } from 'theme-ui'
|
||||||
|
|
||||||
|
interface VpnItemProps {
|
||||||
|
url: string
|
||||||
|
children: React.ReactNode
|
||||||
|
}
|
||||||
|
|
||||||
|
const VpnItem = ({ url, children }: VpnItemProps) => {
|
||||||
|
return (
|
||||||
|
<Link
|
||||||
|
href={url}
|
||||||
|
sx={{
|
||||||
|
border: '1px solid',
|
||||||
|
borderRadius: '4px',
|
||||||
|
borderColor: 'grey',
|
||||||
|
p: '16px',
|
||||||
|
mb: '16px',
|
||||||
|
display: 'block',
|
||||||
|
textDecoration: 'none',
|
||||||
|
color: 'text',
|
||||||
|
'&:hover': {
|
||||||
|
borderColor: 'primary',
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
color: 'primaryDark',
|
||||||
|
textDecoration: 'none',
|
||||||
|
'&:hover': {
|
||||||
|
textDecoration: 'underline',
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Learn more
|
||||||
|
</Box>
|
||||||
|
</Link>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default VpnItem
|
||||||
32
src/popup/pages/vpnPage/index.tsx
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
import { Box, Image } from 'theme-ui'
|
||||||
|
import Page from 'popup/components/Page'
|
||||||
|
import VpnItem from './VpnItem'
|
||||||
|
import nordLogo from 'assets/nord.svg'
|
||||||
|
import protonLogo from 'assets/proton.svg'
|
||||||
|
|
||||||
|
interface VpnPageProps {
|
||||||
|
tab: string
|
||||||
|
}
|
||||||
|
|
||||||
|
const VpnPage = ({ tab }: VpnPageProps) => {
|
||||||
|
return (
|
||||||
|
<Page isCurrentTab={tab === 'vpn'} title={'VPN Recommendations'}>
|
||||||
|
<VpnItem url="https://go.nordvpn.net/aff_c?offer_id=658&aff_id=79520">
|
||||||
|
<Image src={nordLogo} alt="Vpn logo" variant="vpnLogo" />
|
||||||
|
<li>Verified zero-logs policy & no IP leaks</li>
|
||||||
|
<li>5,600+ servers in 59 countries</li>
|
||||||
|
<li>24/7 live chat support</li>
|
||||||
|
</VpnItem>
|
||||||
|
<VpnItem url="https://go.getproton.me/aff_c?offer_id=26&aff_id=3825">
|
||||||
|
<Image src={protonLogo} alt="Proton logo" variant="vpnLogo" />
|
||||||
|
<Box>
|
||||||
|
<li>Verified zero-logs policy & no IP leaks</li>
|
||||||
|
<li>1,885 servers in 67 countries</li>
|
||||||
|
<li>All apps are open-source & audited</li>
|
||||||
|
</Box>
|
||||||
|
</VpnItem>
|
||||||
|
</Page>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default VpnPage
|
||||||
21
src/theme.ts
|
|
@ -19,12 +19,14 @@ export const theme: Theme = {
|
||||||
fontSize: '18px',
|
fontSize: '18px',
|
||||||
lineHeight: '22px',
|
lineHeight: '22px',
|
||||||
margin: '0',
|
margin: '0',
|
||||||
|
li: {
|
||||||
|
mb: '4px',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
forms: {
|
forms: {
|
||||||
label: { width: 'auto', alignItems: 'center' },
|
label: { width: 'auto', alignItems: 'center' },
|
||||||
input: {
|
input: {
|
||||||
// border: '2px solid',
|
|
||||||
p: '4px 8px',
|
p: '4px 8px',
|
||||||
mb: '8px',
|
mb: '8px',
|
||||||
borderColor: 'grey',
|
borderColor: 'grey',
|
||||||
|
|
@ -34,7 +36,6 @@ export const theme: Theme = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
// border: '2px solid',
|
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
p: '4px 8px',
|
p: '4px 8px',
|
||||||
borderColor: 'grey',
|
borderColor: 'grey',
|
||||||
|
|
@ -67,6 +68,15 @@ export const theme: Theme = {
|
||||||
p: 0,
|
p: 0,
|
||||||
m: 0,
|
m: 0,
|
||||||
},
|
},
|
||||||
|
text: {
|
||||||
|
all: 'unset',
|
||||||
|
cursor: 'pointer',
|
||||||
|
color: 'primaryDark',
|
||||||
|
textDecoration: 'none',
|
||||||
|
'&:hover': {
|
||||||
|
textDecoration: 'underline',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
links: {
|
links: {
|
||||||
footer: {
|
footer: {
|
||||||
|
|
@ -81,4 +91,11 @@ export const theme: Theme = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
images: {
|
||||||
|
vpnLogo: {
|
||||||
|
height: '28px',
|
||||||
|
width: 'auto',
|
||||||
|
mb: '6px',
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,90 +0,0 @@
|
||||||
const attachDebugger = (tabId: number) => {
|
|
||||||
chrome.storage.local.get(
|
|
||||||
[
|
|
||||||
'ipData',
|
|
||||||
'timezone',
|
|
||||||
'timezoneMatchIP',
|
|
||||||
'lat',
|
|
||||||
'latitudeMatchIP',
|
|
||||||
'lon',
|
|
||||||
'longitudeMatchIP',
|
|
||||||
'locale',
|
|
||||||
'localeMatchIP',
|
|
||||||
'userAgent',
|
|
||||||
'platform',
|
|
||||||
],
|
|
||||||
(storage) => {
|
|
||||||
if (
|
|
||||||
storage.timezone ||
|
|
||||||
storage.lat ||
|
|
||||||
storage.lon ||
|
|
||||||
storage.locale ||
|
|
||||||
storage.userAgent
|
|
||||||
) {
|
|
||||||
chrome.debugger.attach({ tabId: tabId }, '1.3', () => {
|
|
||||||
if (!chrome.runtime.lastError) {
|
|
||||||
if (storage.timezone) {
|
|
||||||
chrome.debugger.sendCommand(
|
|
||||||
{ tabId: tabId },
|
|
||||||
'Emulation.setTimezoneOverride',
|
|
||||||
{
|
|
||||||
timezoneId: storage.timezone,
|
|
||||||
},
|
|
||||||
() => {
|
|
||||||
if (
|
|
||||||
chrome.runtime.lastError &&
|
|
||||||
chrome.runtime.lastError.message?.includes(
|
|
||||||
'Timezone override is already in effect'
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
chrome.debugger.detach({ tabId })
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (storage.locale) {
|
|
||||||
chrome.debugger.sendCommand(
|
|
||||||
{ tabId: tabId },
|
|
||||||
'Emulation.setLocaleOverride',
|
|
||||||
{
|
|
||||||
locale: storage.locale,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (storage.lat || storage.lon) {
|
|
||||||
chrome.debugger.sendCommand(
|
|
||||||
{ tabId: tabId },
|
|
||||||
'Emulation.setGeolocationOverride',
|
|
||||||
{
|
|
||||||
latitude: storage.lat
|
|
||||||
? parseFloat(storage.lat)
|
|
||||||
: storage.ipData.lat,
|
|
||||||
longitude: storage.lon
|
|
||||||
? parseFloat(storage.lon)
|
|
||||||
: storage.ipData.lon,
|
|
||||||
accuracy: 1,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (storage.userAgent || storage.platform) {
|
|
||||||
chrome.debugger.sendCommand(
|
|
||||||
{ tabId: tabId },
|
|
||||||
'Emulation.setUserAgentOverride',
|
|
||||||
{
|
|
||||||
userAgent: storage.userAgent,
|
|
||||||
platform: storage.platform,
|
|
||||||
}
|
|
||||||
// { acceptLanguage: "en-CA" },
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default attachDebugger
|
|
||||||
|
|
@ -1,97 +1,97 @@
|
||||||
const configurations: any = {
|
const configurations: any = {
|
||||||
auckland: {
|
auckland: {
|
||||||
name: 'Auckland',
|
name: 'Auckland, New Zealand',
|
||||||
timezone: 'Pacific/Auckland',
|
timezone: 'Pacific/Auckland',
|
||||||
locale: 'en-NZ',
|
locale: 'en-NZ',
|
||||||
lat: -36.8485,
|
lat: -36.8485,
|
||||||
lon: 174.7633,
|
lon: 174.7633,
|
||||||
},
|
},
|
||||||
baghdad: {
|
baghdad: {
|
||||||
name: 'Baghdad',
|
name: 'Baghdad, Iraq',
|
||||||
timezone: 'Asia/Baghdad',
|
timezone: 'Asia/Baghdad',
|
||||||
locale: 'ar-IQ',
|
locale: 'ar-IQ',
|
||||||
lat: 33.3152,
|
lat: 33.3152,
|
||||||
lon: 44.3661,
|
lon: 44.3661,
|
||||||
},
|
},
|
||||||
bangkok: {
|
bangkok: {
|
||||||
name: 'Bangkok',
|
name: 'Bangkok, Thailand',
|
||||||
timezone: 'Asia/Bangkok',
|
timezone: 'Asia/Bangkok',
|
||||||
locale: 'th-TH',
|
locale: 'th-TH',
|
||||||
lat: 13.7563,
|
lat: 13.7563,
|
||||||
lon: 100.5018,
|
lon: 100.5018,
|
||||||
},
|
},
|
||||||
beijing: {
|
beijing: {
|
||||||
name: 'Beijing',
|
name: 'Beijing, China',
|
||||||
timezone: 'Asia/Shanghai',
|
timezone: 'Asia/Shanghai',
|
||||||
locale: 'zh-CN',
|
locale: 'zh-CN',
|
||||||
lat: 39.9042,
|
lat: 39.9042,
|
||||||
lon: 116.4074,
|
lon: 116.4074,
|
||||||
},
|
},
|
||||||
berlin: {
|
berlin: {
|
||||||
name: 'Berlin',
|
name: 'Berlin, Germany',
|
||||||
timezone: 'Europe/Berlin',
|
timezone: 'Europe/Berlin',
|
||||||
locale: 'de-DE',
|
locale: 'de-DE',
|
||||||
lat: 52.520007,
|
lat: 52.520007,
|
||||||
lon: 13.404954,
|
lon: 13.404954,
|
||||||
},
|
},
|
||||||
cairo: {
|
cairo: {
|
||||||
name: 'Cairo',
|
name: 'Cairo, Egypt',
|
||||||
timezone: 'Africa/Cairo',
|
timezone: 'Africa/Cairo',
|
||||||
locale: 'ar-EG',
|
locale: 'ar-EG',
|
||||||
lat: 30.0444,
|
lat: 30.0444,
|
||||||
lon: 31.2357,
|
lon: 31.2357,
|
||||||
},
|
},
|
||||||
chicago: {
|
chicago: {
|
||||||
name: 'Chicago',
|
name: 'Chicago, USA',
|
||||||
timezone: 'America/Chicago',
|
timezone: 'America/Chicago',
|
||||||
locale: 'en-US',
|
locale: 'en-US',
|
||||||
lat: 41.8781,
|
lat: 41.8781,
|
||||||
lon: -87.6298,
|
lon: -87.6298,
|
||||||
},
|
},
|
||||||
delhi: {
|
delhi: {
|
||||||
name: 'Delhi',
|
name: 'Delhi, India',
|
||||||
timezone: 'Asia/Kolkata',
|
timezone: 'Asia/Kolkata',
|
||||||
locale: 'hi-IN',
|
locale: 'hi-IN',
|
||||||
lat: 28.7041,
|
lat: 28.7041,
|
||||||
lon: 77.1025,
|
lon: 77.1025,
|
||||||
},
|
},
|
||||||
dubai: {
|
dubai: {
|
||||||
name: 'Dubai',
|
name: 'Dubai, United Arab Emirates',
|
||||||
timezone: 'Asia/Dubai',
|
timezone: 'Asia/Dubai',
|
||||||
locale: 'ar-AE',
|
locale: 'ar-AE',
|
||||||
lat: 25.2048,
|
lat: 25.2048,
|
||||||
lon: 55.2708,
|
lon: 55.2708,
|
||||||
},
|
},
|
||||||
dublin: {
|
dublin: {
|
||||||
name: 'Dublin',
|
name: 'Dublin, Ireland',
|
||||||
timezone: 'Europe/Dublin',
|
timezone: 'Europe/Dublin',
|
||||||
locale: 'en-IE',
|
locale: 'en-IE',
|
||||||
lat: 53.3498,
|
lat: 53.3498,
|
||||||
lon: -6.2603,
|
lon: -6.2603,
|
||||||
},
|
},
|
||||||
hongKong: {
|
hongKong: {
|
||||||
name: 'Hong Kong',
|
name: 'Hong Kong, China',
|
||||||
timezone: 'Asia/Hong_Kong',
|
timezone: 'Asia/Hong_Kong',
|
||||||
locale: 'zh-HK',
|
locale: 'zh-HK',
|
||||||
lat: 22.3193,
|
lat: 22.3193,
|
||||||
lon: 114.1694,
|
lon: 114.1694,
|
||||||
},
|
},
|
||||||
houston: {
|
houston: {
|
||||||
name: 'Houston',
|
name: 'Houston, USA',
|
||||||
timezone: 'America/Chicago',
|
timezone: 'America/Chicago',
|
||||||
locale: 'en-US',
|
locale: 'en-US',
|
||||||
lat: 29.7627,
|
lat: 29.7627,
|
||||||
lon: -95.3863,
|
lon: -95.3863,
|
||||||
},
|
},
|
||||||
istanbul: {
|
istanbul: {
|
||||||
name: 'Istanbul',
|
name: 'Istanbul, Turkey',
|
||||||
timezone: 'Europe/Istanbul',
|
timezone: 'Europe/Istanbul',
|
||||||
locale: 'tr-TR',
|
locale: 'tr-TR',
|
||||||
lat: 41.0082,
|
lat: 41.0082,
|
||||||
lon: 28.9784,
|
lon: 28.9784,
|
||||||
},
|
},
|
||||||
jakarta: {
|
jakarta: {
|
||||||
name: 'Jakarta',
|
name: 'Jakarta, Indonesia',
|
||||||
timezone: 'Asia/Jakarta',
|
timezone: 'Asia/Jakarta',
|
||||||
locale: 'id-ID',
|
locale: 'id-ID',
|
||||||
lat: -6.2146,
|
lat: -6.2146,
|
||||||
|
|
@ -105,203 +105,203 @@ const configurations: any = {
|
||||||
lon: 35.2137,
|
lon: 35.2137,
|
||||||
},
|
},
|
||||||
kinshasa: {
|
kinshasa: {
|
||||||
name: 'Kinshasa',
|
name: 'Kinshasa, DR Congo',
|
||||||
timezone: 'Africa/Lagos',
|
timezone: 'Africa/Lagos',
|
||||||
locale: 'fr-CD',
|
locale: 'fr-CD',
|
||||||
lat: -4.4419,
|
lat: -4.4419,
|
||||||
lon: 15.2663,
|
lon: 15.2663,
|
||||||
},
|
},
|
||||||
kyiv: {
|
kyiv: {
|
||||||
name: 'Kyiv',
|
name: 'Kyiv, Ukraine',
|
||||||
timezone: 'Europe/Kiev',
|
timezone: 'Europe/Kiev',
|
||||||
locale: 'uk-UA',
|
locale: 'uk-UA',
|
||||||
lat: 50.4501,
|
lat: 50.4501,
|
||||||
lon: 30.5234,
|
lon: 30.5234,
|
||||||
},
|
},
|
||||||
lagos: {
|
lagos: {
|
||||||
name: 'Lagos',
|
name: 'Lagos, Nigeria',
|
||||||
timezone: 'Africa/Lagos',
|
timezone: 'Africa/Lagos',
|
||||||
locale: 'en-NG',
|
locale: 'en-NG',
|
||||||
lat: 6.5244,
|
lat: 6.5244,
|
||||||
lon: 3.379,
|
lon: 3.379,
|
||||||
},
|
},
|
||||||
lima: {
|
lima: {
|
||||||
name: 'Lima',
|
name: 'Lima, Peru',
|
||||||
timezone: 'America/Lima',
|
timezone: 'America/Lima',
|
||||||
locale: 'es-PE',
|
locale: 'es-PE',
|
||||||
lat: -12.0432,
|
lat: -12.0432,
|
||||||
lon: -77.0282,
|
lon: -77.0282,
|
||||||
},
|
},
|
||||||
london: {
|
london: {
|
||||||
name: 'London',
|
name: 'London, UK',
|
||||||
timezone: 'Europe/London',
|
timezone: 'Europe/London',
|
||||||
locale: 'en-GB',
|
locale: 'en-GB',
|
||||||
lat: 51.5074,
|
lat: 51.5074,
|
||||||
lon: -0.1278,
|
lon: -0.1278,
|
||||||
},
|
},
|
||||||
losAngeles: {
|
losAngeles: {
|
||||||
name: 'Los Angeles',
|
name: 'Los Angeles, USA',
|
||||||
timezone: 'America/Los_Angeles',
|
timezone: 'America/Los_Angeles',
|
||||||
locale: 'en-US',
|
locale: 'en-US',
|
||||||
lat: 34.0522,
|
lat: 34.0522,
|
||||||
lon: -118.2437,
|
lon: -118.2437,
|
||||||
},
|
},
|
||||||
manila: {
|
manila: {
|
||||||
name: 'Manila',
|
name: 'Manila, Philippines',
|
||||||
timezone: 'Asia/Manila',
|
timezone: 'Asia/Manila',
|
||||||
locale: 'en-PH',
|
locale: 'en-PH',
|
||||||
lat: 14.6042,
|
lat: 14.6042,
|
||||||
lon: 120.9822,
|
lon: 120.9822,
|
||||||
},
|
},
|
||||||
mecca: {
|
mecca: {
|
||||||
name: 'Mecca',
|
name: 'Mecca, Saudi Arabia',
|
||||||
timezone: 'Asia/Riyadh',
|
timezone: 'Asia/Riyadh',
|
||||||
locale: 'ar-SA',
|
locale: 'ar-SA',
|
||||||
lat: 21.4225,
|
lat: 21.4225,
|
||||||
lon: 39.8262,
|
lon: 39.8262,
|
||||||
},
|
},
|
||||||
mexicoCity: {
|
mexicoCity: {
|
||||||
name: 'Mexico City',
|
name: 'Mexico City, Mexico',
|
||||||
timezone: 'America/Mexico_City',
|
timezone: 'America/Mexico_City',
|
||||||
locale: 'es-MX',
|
locale: 'es-MX',
|
||||||
lat: 19.4271,
|
lat: 19.4271,
|
||||||
lon: -99.1276,
|
lon: -99.1276,
|
||||||
},
|
},
|
||||||
montreal: {
|
montreal: {
|
||||||
name: 'Montreal',
|
name: 'Montreal, Canada',
|
||||||
timezone: 'America/Toronto',
|
timezone: 'America/Toronto',
|
||||||
locale: 'fr-CA',
|
locale: 'fr-CA',
|
||||||
lat: 45.5017,
|
lat: 45.5017,
|
||||||
lon: -73.5673,
|
lon: -73.5673,
|
||||||
},
|
},
|
||||||
moscow: {
|
moscow: {
|
||||||
name: 'Moscow',
|
name: 'Moscow, Russia',
|
||||||
timezone: 'Europe/Moscow',
|
timezone: 'Europe/Moscow',
|
||||||
locale: 'ru-RU',
|
locale: 'ru-RU',
|
||||||
lat: 55.7558,
|
lat: 55.7558,
|
||||||
lon: 37.6176,
|
lon: 37.6176,
|
||||||
},
|
},
|
||||||
mumbai: {
|
mumbai: {
|
||||||
name: 'Mumbai',
|
name: 'Mumbai, India',
|
||||||
timezone: 'Asia/Kolkata',
|
timezone: 'Asia/Kolkata',
|
||||||
locale: 'en-IN',
|
locale: 'en-IN',
|
||||||
lat: 19.076,
|
lat: 19.076,
|
||||||
lon: 72.8777,
|
lon: 72.8777,
|
||||||
},
|
},
|
||||||
newYork: {
|
newYork: {
|
||||||
name: 'New York',
|
name: 'New York, USA',
|
||||||
timezone: 'America/New_York',
|
timezone: 'America/New_York',
|
||||||
locale: 'en-US',
|
locale: 'en-US',
|
||||||
lat: 40.7127,
|
lat: 40.7127,
|
||||||
lon: -74.0059,
|
lon: -74.0059,
|
||||||
},
|
},
|
||||||
oslo: {
|
oslo: {
|
||||||
name: 'Oslo',
|
name: 'Oslo, Norway',
|
||||||
timezone: 'Europe/Oslo',
|
timezone: 'Europe/Oslo',
|
||||||
locale: 'no-NO',
|
locale: 'no-NO',
|
||||||
lat: 59.9138,
|
lat: 59.9138,
|
||||||
lon: 10.7517,
|
lon: 10.7517,
|
||||||
},
|
},
|
||||||
paris: {
|
paris: {
|
||||||
name: 'Paris',
|
name: 'Paris, France',
|
||||||
timezone: 'Europe/Paris',
|
timezone: 'Europe/Paris',
|
||||||
locale: 'fr-FR',
|
locale: 'fr-FR',
|
||||||
lat: 48.8566,
|
lat: 48.8566,
|
||||||
lon: 2.3522,
|
lon: 2.3522,
|
||||||
},
|
},
|
||||||
rome: {
|
rome: {
|
||||||
name: 'Rome',
|
name: 'Rome, Italy',
|
||||||
timezone: 'Europe/Rome',
|
timezone: 'Europe/Rome',
|
||||||
locale: 'it-IT',
|
locale: 'it-IT',
|
||||||
lat: 41.9028,
|
lat: 41.9028,
|
||||||
lon: 12.4964,
|
lon: 12.4964,
|
||||||
},
|
},
|
||||||
saintPetersburg: {
|
saintPetersburg: {
|
||||||
name: 'Saint Petersburg',
|
name: 'Saint Petersburg, Russia',
|
||||||
timezone: 'Europe/Moscow',
|
timezone: 'Europe/Moscow',
|
||||||
locale: 'ru-RU',
|
locale: 'ru-RU',
|
||||||
lat: 59.9386,
|
lat: 59.9386,
|
||||||
lon: 30.3141,
|
lon: 30.3141,
|
||||||
},
|
},
|
||||||
saoPaulo: {
|
saoPaulo: {
|
||||||
name: 'São Paulo',
|
name: 'São Paulo, Brazil',
|
||||||
timezone: 'America/Sao_Paulo',
|
timezone: 'America/Sao_Paulo',
|
||||||
locale: 'pt-BR',
|
locale: 'pt-BR',
|
||||||
lat: -23.5505,
|
lat: -23.5505,
|
||||||
lon: -46.6333,
|
lon: -46.6333,
|
||||||
},
|
},
|
||||||
sanFrancisco: {
|
sanFrancisco: {
|
||||||
name: 'San Francisco',
|
name: 'San Francisco, USA',
|
||||||
timezone: 'America/Los_Angeles',
|
timezone: 'America/Los_Angeles',
|
||||||
locale: 'en-US',
|
locale: 'en-US',
|
||||||
lat: 37.7749,
|
lat: 37.7749,
|
||||||
lon: -122.4194,
|
lon: -122.4194,
|
||||||
},
|
},
|
||||||
seoul: {
|
seoul: {
|
||||||
name: 'Seoul',
|
name: 'Seoul, South Korea',
|
||||||
timezone: 'Asia/Seoul',
|
timezone: 'Asia/Seoul',
|
||||||
locale: 'ko-KR',
|
locale: 'ko-KR',
|
||||||
lat: 37.5665,
|
lat: 37.5665,
|
||||||
lon: 126.978,
|
lon: 126.978,
|
||||||
},
|
},
|
||||||
shanghai: {
|
shanghai: {
|
||||||
name: 'Shanghai',
|
name: 'Shanghai, China',
|
||||||
timezone: 'Asia/Shanghai',
|
timezone: 'Asia/Shanghai',
|
||||||
locale: 'zh-CN',
|
locale: 'zh-CN',
|
||||||
lat: 31.2304,
|
lat: 31.2304,
|
||||||
lon: 121.4737,
|
lon: 121.4737,
|
||||||
},
|
},
|
||||||
singapore: {
|
singapore: {
|
||||||
name: 'Singapore',
|
name: 'Singapore, Singapore',
|
||||||
timezone: 'Asia/Singapore',
|
timezone: 'Asia/Singapore',
|
||||||
locale: 'en-SG',
|
locale: 'en-SG',
|
||||||
lat: 1.3521,
|
lat: 1.3521,
|
||||||
lon: 103.8198,
|
lon: 103.8198,
|
||||||
},
|
},
|
||||||
sydney: {
|
sydney: {
|
||||||
name: 'Sydney',
|
name: 'Sydney, Australia',
|
||||||
timezone: 'Australia/Sydney',
|
timezone: 'Australia/Sydney',
|
||||||
locale: 'en-AU',
|
locale: 'en-AU',
|
||||||
lat: -33.8688,
|
lat: -33.8688,
|
||||||
lon: 151.2195,
|
lon: 151.2195,
|
||||||
},
|
},
|
||||||
taipei: {
|
taipei: {
|
||||||
name: 'Taipei',
|
name: 'Taipei, Taiwan',
|
||||||
timezone: 'Asia/Taipei',
|
timezone: 'Asia/Taipei',
|
||||||
locale: 'zh-TW',
|
locale: 'zh-TW',
|
||||||
lat: 25.0329,
|
lat: 25.0329,
|
||||||
lon: 121.5654,
|
lon: 121.5654,
|
||||||
},
|
},
|
||||||
tokyo: {
|
tokyo: {
|
||||||
name: 'Tokyo',
|
name: 'Tokyo, Japan',
|
||||||
timezone: 'Asia/Tokyo',
|
timezone: 'Asia/Tokyo',
|
||||||
locale: 'ja-JP',
|
locale: 'ja-JP',
|
||||||
lat: 35.6895,
|
lat: 35.6895,
|
||||||
lon: 139.6917,
|
lon: 139.6917,
|
||||||
},
|
},
|
||||||
toronto: {
|
toronto: {
|
||||||
name: 'Toronto',
|
name: 'Toronto, Canada',
|
||||||
timezone: 'America/Toronto',
|
timezone: 'America/Toronto',
|
||||||
locale: 'en-CA',
|
locale: 'en-CA',
|
||||||
lat: 43.6532,
|
lat: 43.6532,
|
||||||
lon: -79.3832,
|
lon: -79.3832,
|
||||||
},
|
},
|
||||||
tehran: {
|
tehran: {
|
||||||
name: 'Tehran',
|
name: 'Tehran, Iran',
|
||||||
timezone: 'Asia/Tehran',
|
timezone: 'Asia/Tehran',
|
||||||
locale: 'fa-IR',
|
locale: 'fa-IR',
|
||||||
lat: 35.6892,
|
lat: 35.6892,
|
||||||
lon: 51.389,
|
lon: 51.389,
|
||||||
},
|
},
|
||||||
vienna: {
|
vienna: {
|
||||||
name: 'Vienna',
|
name: 'Vienna, Austria',
|
||||||
timezone: 'Europe/Vienna',
|
timezone: 'Europe/Vienna',
|
||||||
locale: 'de-DE',
|
locale: 'de-DE',
|
||||||
lat: 48.2082,
|
lat: 48.2082,
|
||||||
lon: 16.3738,
|
lon: 16.3738,
|
||||||
},
|
},
|
||||||
washington: {
|
washington: {
|
||||||
name: 'Washington',
|
name: 'Washington, USA',
|
||||||
timezone: 'America/New_York',
|
timezone: 'America/New_York',
|
||||||
locale: 'en-US',
|
locale: 'en-US',
|
||||||
lat: 38.9072,
|
lat: 38.9072,
|
||||||
|
|
|
||||||
|
|
@ -1,66 +1,334 @@
|
||||||
const userAgents: any = {
|
const userAgents: any = [
|
||||||
Windows: {
|
{
|
||||||
platform: 'Win32',
|
title: 'Android',
|
||||||
userAgents: {
|
values: [
|
||||||
Chrome:
|
{
|
||||||
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
|
title: 'Android (4.0.2) Browser - Galaxy Nexus',
|
||||||
Edge: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.54',
|
value:
|
||||||
Firefox:
|
'Mozilla/5.0 (Linux; U; Android 4.0.2; en-us; Galaxy Nexus Build/ICL53F) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
|
||||||
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0',
|
platform: 'Linux armv7l',
|
||||||
Opera:
|
|
||||||
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 OPR/65.0.3467.48',
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Android (2.3) Browser - Nexus S',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Linux; U; Android 2.3.6; en-us; Nexus S Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1',
|
||||||
|
platform: 'Linux armv7l',
|
||||||
},
|
},
|
||||||
Mac: {
|
],
|
||||||
platform: 'MacIntel',
|
|
||||||
userAgents: {
|
|
||||||
Safari:
|
|
||||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15',
|
|
||||||
Chrome:
|
|
||||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
|
|
||||||
Edge: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.54',
|
|
||||||
Firefox:
|
|
||||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:107.0) Gecko/20100101 Firefox/108.0',
|
|
||||||
Opera:
|
|
||||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 OPR/65.0.3467.48',
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'BlackBerry',
|
||||||
|
values: [
|
||||||
|
{
|
||||||
|
title: 'BlackBerry - BB10',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (BB10; Touch) AppleWebKit/537.1+ (KHTML, like Gecko) Version/10.0.0.1337 Mobile Safari/537.1+',
|
||||||
|
platform: 'BlackBerry',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
Linux: {
|
title: 'BlackBerry - PlayBook 2.1',
|
||||||
platform: 'Linux x86_64',
|
value:
|
||||||
userAgents: {
|
'Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML, like Gecko) Version/7.2.1.0 Safari/536.2+',
|
||||||
Chrome:
|
platform: 'BlackBerry',
|
||||||
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
|
|
||||||
Firefox:
|
|
||||||
'Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0',
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'BlackBerry - 9900',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en-US) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.0.0.187 Mobile Safari/534.11+',
|
||||||
|
platform: 'BlackBerry',
|
||||||
},
|
},
|
||||||
Android: {
|
],
|
||||||
platform: 'Linux armv8l',
|
},
|
||||||
userAgents: {
|
{
|
||||||
Samsung:
|
title: 'Chrome',
|
||||||
'Mozilla/5.0 (Linux; Android 5.1.1; SAMSUNG SM-G920P Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/3.2 Chrome/38.0.2125.102 Mobile Safari/E7FBAF',
|
values: [
|
||||||
Chrome:
|
{
|
||||||
|
title: 'Chrome - Android Mobile',
|
||||||
|
value:
|
||||||
'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36',
|
'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36',
|
||||||
Edge: 'Mozilla/5.0 (Linux; Android 8.1.0; Pixel Build/OPM4.171019.021.D1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36 EdgA/42.0.0.2057',
|
platform: 'Linux armv7l',
|
||||||
Firefox:
|
|
||||||
'Mozilla/5.0 (Android 4.4; Mobile; rv:70.0) Gecko/70.0 Firefox/70.0',
|
|
||||||
Opera:
|
|
||||||
'Opera/12.02 (Android 4.1; Linux; Opera Mobi/ADR-1111101157; U; en-US) Presto/2.9.201 Version/12.02',
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Chrome - Android Mobile (high-end)',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36',
|
||||||
|
platform: 'Linux armv7l',
|
||||||
},
|
},
|
||||||
iOS: {
|
{
|
||||||
platform: 'iPhone',
|
title: 'Chrome - Android Tablet',
|
||||||
userAgents: {
|
value:
|
||||||
Safari:
|
'Mozilla/5.0 (Linux; Android 4.3; Nexus 7 Build/JSS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
|
||||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
|
platform: 'Linux armv7l',
|
||||||
Chrome:
|
},
|
||||||
|
{
|
||||||
|
title: 'Chrome - iPhone',
|
||||||
|
value:
|
||||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/108.0.0.0 Mobile/15E148 Safari/604.1',
|
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/108.0.0.0 Mobile/15E148 Safari/604.1',
|
||||||
Edge: 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 EdgiOS/44.5.0.10 Mobile/15E148 Safari/604.1',
|
platform: 'iPhone',
|
||||||
Firefox:
|
},
|
||||||
|
{
|
||||||
|
title: 'Chrome - iPad',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (iPad; CPU OS 13_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/108.0.0.0 Mobile/15E148 Safari/604.1',
|
||||||
|
platform: 'iPad',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Chrome - Chrome OS',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (X11; CrOS x86_64 10066.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
|
||||||
|
platform: 'Linux X86_64',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Chrome - Mac',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
|
||||||
|
platform: 'MacIntel',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Chrome - Windows',
|
||||||
|
value:
|
||||||
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Firefox',
|
||||||
|
values: [
|
||||||
|
{
|
||||||
|
title: 'Firefox - Android Mobile',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Android 4.4; Mobile; rv:70.0) Gecko/70.0 Firefox/70.0',
|
||||||
|
platform: 'Linux armv7l',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Firefox - Android Tablet',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Android 4.4; Tablet; rv:70.0) Gecko/70.0 Firefox/70.0',
|
||||||
|
platform: 'Linux armv7l',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Firefox - iPhone',
|
||||||
|
value:
|
||||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4',
|
'Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4',
|
||||||
|
platform: 'iPhone',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Firefox - iPad',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (iPad; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4',
|
||||||
|
platform: 'iPad',
|
||||||
},
|
},
|
||||||
}
|
{
|
||||||
|
title: 'Firefox - Mac',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0',
|
||||||
|
platform: 'MacIntel',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Firefox - Windows',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:70.0) Gecko/20100101 Firefox/70.0',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// title: 'Googlebot',
|
||||||
|
// values: [
|
||||||
|
// {
|
||||||
|
// title: 'Googlebot',
|
||||||
|
// value:
|
||||||
|
// 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
|
||||||
|
// platform: 'Android',
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: 'Googlebot Desktop',
|
||||||
|
// value:
|
||||||
|
// 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Chrome/108.0.0.0 Safari/537.36',
|
||||||
|
// platform: 'Android',
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: 'Googlebot Smartphone',
|
||||||
|
// value:
|
||||||
|
// 'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
|
||||||
|
// platform: 'Android',
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
|
{
|
||||||
|
title: 'Internet Explorer',
|
||||||
|
values: [
|
||||||
|
{
|
||||||
|
title: 'Internet Explorer 11',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Internet Explorer 10',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Internet Explorer 9',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Internet Explorer 8',
|
||||||
|
value:
|
||||||
|
'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Internet Explorer 7',
|
||||||
|
value: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Microsoft Edge',
|
||||||
|
values: [
|
||||||
|
{
|
||||||
|
title: 'Microsoft Edge (Chromium) - Windows',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.0.0',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Microsoft Edge (Chromium) - Mac',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/604.1 Edg/108.0.0.0',
|
||||||
|
platform: 'MacIntel',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Microsoft Edge - iPhone',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (iPhone; CPU iPhone OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 EdgiOS/44.5.0.10 Mobile/15E148 Safari/604.1',
|
||||||
|
platform: 'iPhone',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Microsoft Edge - iPad',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (iPad; CPU OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 EdgiOS/44.5.2 Mobile/15E148 Safari/605.1.15',
|
||||||
|
platform: 'iPad',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Microsoft Edge - Android Mobile',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Linux; Android 8.1.0; Pixel Build/OPM4.171019.021.D1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36 EdgA/42.0.0.2057',
|
||||||
|
platform: 'Linux armv7l',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Microsoft Edge - Android Tablet',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Safari/537.36 EdgA/42.0.0.2057',
|
||||||
|
platform: 'Linux armv7l',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Microsoft Edge (EdgeHTML) - Windows',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.19042',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Microsoft Edge (EdgeHTML) - XBox',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; Xbox; Xbox One) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.19041',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Opera',
|
||||||
|
values: [
|
||||||
|
{
|
||||||
|
title: 'Opera - Mac',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 OPR/65.0.3467.48',
|
||||||
|
platform: 'MacIntel',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Opera - Windows',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 OPR/65.0.3467.48',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Opera (Presto) - Mac',
|
||||||
|
value:
|
||||||
|
'Opera/9.80 (Macintosh; Intel Mac OS X 10.9.1) Presto/2.12.388 Version/12.16',
|
||||||
|
platform: 'MacIntel',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Opera (Presto) - Windows',
|
||||||
|
value: 'Opera/9.80 (Windows NT 6.1) Presto/2.12.388 Version/12.16',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Opera Mobile - Android Mobile',
|
||||||
|
value:
|
||||||
|
'Opera/12.02 (Android 4.1; Linux; Opera Mobi/ADR-1111101157; U; en-US) Presto/2.9.201 Version/12.02',
|
||||||
|
platform: 'Linux armv7l',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Opera Mini - iOS',
|
||||||
|
value:
|
||||||
|
'Opera/9.80 (iPhone; Opera Mini/8.0.0/34.2336; U; en) Presto/2.8.119 Version/11.10',
|
||||||
|
platform: 'iPhone',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Safari',
|
||||||
|
values: [
|
||||||
|
{
|
||||||
|
title: 'Safari - iPad iOS 13.2',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (iPad; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
|
||||||
|
platform: 'iPad',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Safari - iPhone iOS 13.2',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
|
||||||
|
platform: 'iPhone',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Safari - Mac',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15',
|
||||||
|
platform: 'MacIntel',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'UC Browser',
|
||||||
|
values: [
|
||||||
|
{
|
||||||
|
title: 'UC Browser - Android Mobile',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (Linux; U; Android 8.1.0; en-US; Nexus 6P Build/OPM7.181205.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.11.1.1197 Mobile Safari/537.36',
|
||||||
|
platform: 'Linux armv7l',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'UC Browser - iOS',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X; zh-CN) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/16B92 UCBrowser/12.1.7.1109 Mobile AliApp(TUnionSDK/0.1.20.3)',
|
||||||
|
platform: 'iPhone',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'UC Browser - Windows Phone',
|
||||||
|
value:
|
||||||
|
'Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 920) UCBrowser/10.1.0.563 Mobile',
|
||||||
|
platform: 'Win32',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
export default userAgents
|
export default userAgents
|
||||||
|
|
|
||||||
66
src/utils/userAgentsOld.ts
Normal file
|
|
@ -0,0 +1,66 @@
|
||||||
|
const userAgents: any = {
|
||||||
|
Windows: {
|
||||||
|
platform: 'Win32',
|
||||||
|
userAgents: {
|
||||||
|
Chrome:
|
||||||
|
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
|
||||||
|
Edge: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.54',
|
||||||
|
Firefox:
|
||||||
|
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0',
|
||||||
|
Opera:
|
||||||
|
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 OPR/65.0.3467.48',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Mac: {
|
||||||
|
platform: 'MacIntel',
|
||||||
|
userAgents: {
|
||||||
|
Safari:
|
||||||
|
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15',
|
||||||
|
Chrome:
|
||||||
|
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
|
||||||
|
Edge: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.54',
|
||||||
|
Firefox:
|
||||||
|
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:107.0) Gecko/20100101 Firefox/108.0',
|
||||||
|
Opera:
|
||||||
|
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 OPR/65.0.3467.48',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Linux: {
|
||||||
|
platform: 'Linux x86_64',
|
||||||
|
userAgents: {
|
||||||
|
Chrome:
|
||||||
|
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
|
||||||
|
Firefox:
|
||||||
|
'Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Android: {
|
||||||
|
platform: 'Linux armv8l',
|
||||||
|
userAgents: {
|
||||||
|
Samsung:
|
||||||
|
'Mozilla/5.0 (Linux; Android 5.1.1; SAMSUNG SM-G920P Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/3.2 Chrome/38.0.2125.102 Mobile Safari/E7FBAF',
|
||||||
|
Chrome:
|
||||||
|
'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36',
|
||||||
|
Edge: 'Mozilla/5.0 (Linux; Android 8.1.0; Pixel Build/OPM4.171019.021.D1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36 EdgA/42.0.0.2057',
|
||||||
|
Firefox:
|
||||||
|
'Mozilla/5.0 (Android 4.4; Mobile; rv:70.0) Gecko/70.0 Firefox/70.0',
|
||||||
|
Opera:
|
||||||
|
'Opera/12.02 (Android 4.1; Linux; Opera Mobi/ADR-1111101157; U; en-US) Presto/2.9.201 Version/12.02',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
iOS: {
|
||||||
|
platform: 'iPhone',
|
||||||
|
userAgents: {
|
||||||
|
Safari:
|
||||||
|
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
|
||||||
|
Chrome:
|
||||||
|
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/108.0.0.0 Mobile/15E148 Safari/604.1',
|
||||||
|
Edge: 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 EdgiOS/44.5.0.10 Mobile/15E148 Safari/604.1',
|
||||||
|
Firefox:
|
||||||
|
'Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
export default userAgents
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"baseUrl": "./src",
|
||||||
"target": "es6",
|
"target": "es6",
|
||||||
"lib": ["dom", "dom.iterable", "esnext"],
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"allowJs": false,
|
"allowJs": false,
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,8 @@ if (fileSystem.existsSync(secretsPath)) {
|
||||||
var options = {
|
var options = {
|
||||||
mode: process.env.NODE_ENV || 'development',
|
mode: process.env.NODE_ENV || 'development',
|
||||||
entry: {
|
entry: {
|
||||||
popup: path.join(__dirname, 'src', 'Popup', 'index.tsx'),
|
popup: path.join(__dirname, 'src', 'popup', 'index.tsx'),
|
||||||
background: path.join(__dirname, 'src', 'Background', 'index.ts'),
|
background: path.join(__dirname, 'src', 'background', 'index.ts'),
|
||||||
},
|
},
|
||||||
chromeExtensionBoilerplate: {
|
chromeExtensionBoilerplate: {
|
||||||
notHotReload: ['background'],
|
notHotReload: ['background'],
|
||||||
|
|
@ -99,6 +99,7 @@ var options = {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
|
||||||
alias: alias,
|
alias: alias,
|
||||||
extensions: fileExtensions
|
extensions: fileExtensions
|
||||||
.map((extension) => '.' + extension)
|
.map((extension) => '.' + extension)
|
||||||
|
|
@ -128,6 +129,15 @@ var options = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
new CopyWebpackPlugin({
|
||||||
|
patterns: [
|
||||||
|
{
|
||||||
|
from: 'src/_locales',
|
||||||
|
to: path.join(__dirname, 'build/_locales'),
|
||||||
|
force: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
new CopyWebpackPlugin({
|
new CopyWebpackPlugin({
|
||||||
patterns: [
|
patterns: [
|
||||||
{
|
{
|
||||||
|
|
@ -140,7 +150,7 @@ var options = {
|
||||||
new CopyWebpackPlugin({
|
new CopyWebpackPlugin({
|
||||||
patterns: [
|
patterns: [
|
||||||
{
|
{
|
||||||
from: 'src/assets/icon32.png',
|
from: 'src/assets/icon48.png',
|
||||||
to: path.join(__dirname, 'build'),
|
to: path.join(__dirname, 'build'),
|
||||||
force: true,
|
force: true,
|
||||||
},
|
},
|
||||||
|
|
@ -156,7 +166,7 @@ var options = {
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
template: path.join(__dirname, 'src', 'Popup', 'index.html'),
|
template: path.join(__dirname, 'src', 'popup', 'index.html'),
|
||||||
filename: 'popup.html',
|
filename: 'popup.html',
|
||||||
chunks: ['popup'],
|
chunks: ['popup'],
|
||||||
cache: false,
|
cache: false,
|
||||||
|
|
|
||||||