Repository: MikeRogers0/LivePage
Branch: master
Commit: 581302ae09fa
Files: 62
Total size: 144.1 KB
Directory structure:
gitextract_y5kjkvis/
├── .gitignore
├── .ruby-version
├── .travis.yml
├── CHANGELOG.md
├── CONTRIBUTING.md
├── Gruntfile.js
├── LICENSE.md
├── README.md
├── _locales/
│ ├── de/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── en/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── en_GB/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── en_US/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── es/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── fr/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── it/
│ │ └── messages.json
│ ├── ja/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── ko/
│ │ └── messages.json
│ ├── pt/
│ │ └── messages.json
│ ├── pt_BR/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── ru/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── zh-CN/
│ │ └── messages.json
│ └── zh-TW/
│ └── messages.json
├── css/
│ ├── options.css
│ └── options.scss
├── demo/
│ ├── body.css
│ ├── css_test.css
│ ├── css_test_2.css
│ ├── imported.css
│ ├── index.html
│ ├── relative.html
│ └── src/
│ ├── css/
│ │ └── imported.css
│ └── index.css
├── js/
│ ├── background.js
│ ├── content_scripts/
│ │ ├── file_protocol_test.js
│ │ └── on_inject_callback.js
│ ├── helpers/
│ │ ├── i18n_helper.js
│ │ └── tab_helper.js
│ ├── injected/
│ │ ├── live_css_resource.js
│ │ ├── live_img_resource.js
│ │ ├── live_resource.js
│ │ └── livepage.js
│ ├── livepages.js
│ ├── options.js
│ └── settings.js
├── manifest.json
├── options.html
├── package.json
├── release.sh
├── tasks/
│ └── translation.js
└── test/
├── index.html
└── units/
├── helpers/
│ └── tab_helper_test.js
└── injected/
├── live_resource_test.js
└── livepage_test.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.vi
*~
*.sass-cache
node_modules/*
report/*
tmp/*
# OS or Editor folders
.DS_Store
.cache
.project
.settings
.tmproj
nbproject
Thumbs.db
# Dreamweaver added files
_notes
dwsync.xml
# Komodo
*.komodoproject
.komodotools
# Folders to ignore
.hg
.svn
.CVS
intermediate
publish
.idea
# build script local files
build/buildinfo.properties
build/config/buildinfo.properties
================================================
FILE: .ruby-version
================================================
2.6.3
================================================
FILE: .travis.yml
================================================
notifications:
email: false
language: node_js
node_js:
- '7.2.0'
before_script:
- npm install -g grunt-cli
================================================
FILE: CHANGELOG.md
================================================
# Changelog
All future milestones & current issues can be found on https://github.com/MikeRogers0/LivePage/issues
## [2.7.0](https://github.com/MikeRogers0/LivePage/tree/2.7.0) (2019-08-29)
- Adding method to blacklist URLs from being tracked.
## [2.6.8](https://github.com/MikeRogers0/LivePage/tree/2.6.8) (2018-02-05)
- Suppressing the "email me" message until I can work on a proper fix.
## [2.6.7](https://github.com/MikeRogers0/LivePage/tree/2.6.7) (2018-02-02)
- Adding Try/Catch around stylesheet error - Couldn't recreate it, but users reported it.
## [2.6.5](https://github.com/MikeRogers0/LivePage/tree/2.6.5) (2017-11-01)
- Added automated translation script.
- Added Chinese translation
## [2.6.4](https://github.com/MikeRogers0/LivePage/tree/2.6.4) (2017-11-01)
- Making cache breaker optional - Thanks @Opensourcecommunitydevelopment
## [2.6.3](https://github.com/MikeRogers0/LivePage/tree/2.6.3) (2017-09-11)
- Fix for duplicate cache breaker in URL - Thanks @Opensourcecommunitydevelopment
## [2.6.2](https://github.com/MikeRogers0/LivePage/tree/2.6.2) (2017-07-09)
- Fix for trackable URL when no hosts exists.
## [2.6.1](https://github.com/MikeRogers0/LivePage/tree/2.6.1) (2017-07-09)
- Reports of LivePage just stopping working we're reported, changing where I got the URL from when testing trackable URLs.
## [2.6.0](https://github.com/MikeRogers0/LivePage/tree/2.6.0) (2017-07-08)
- Fixing bug where urls with ports were always considered an external resource.
## [2.5.2](https://github.com/MikeRogers0/LivePage/tree/2.5.2) (2017-04-06)
- Fixing issue where localhost not considered an external host.
## [2.5.1](https://github.com/MikeRogers0/LivePage/tree/2.5.1) (2017-03-08)
- Correcting Portuguese (Brazil) translations folder location.
## [2.5.0](https://github.com/MikeRogers0/LivePage/tree/2.5.0) (2017-02-28)
- We now have Japanese and Portuguese (Brazil) translations.
## [2.4.4](https://github.com/MikeRogers0/LivePage/tree/2.4.4) (2017-02-20)
- Fix to not throw error when using sessionStorage on file:// protocols. #93 - Thanks you @gromimol for reporting.
## [2.4.3](https://github.com/MikeRogers0/LivePage/tree/2.4.3) (2017-01-20)
- Fix to stop LivePage crashing when resource throws a 503 error #88. Thank you @timsayshey !
## [2.4.2](https://github.com/MikeRogers0/LivePage/tree/2.4.2) (2017-01-09)
- Fixes typo where settings page was unable to load. Fixes #82
## [2.4.1](https://github.com/MikeRogers0/LivePage/tree/2.4.1) (2017-01-08)
- Fixes issue where LivePage would be injected multiple times #81
## [2.4.0](https://github.com/MikeRogers0/LivePage/tree/2.4.0) (2017-01-02)
- Split Ignore inline JavaScript & hidden fields in HTML into two different options. #74
- "Monitor adhoc files using:"" would be better worded "Monitor files specified using:". #75
- Add test suite #77 - It's only simple, but long term I can start building more confidently.
## [2.3.2](https://github.com/MikeRogers0/LivePage/tree/2.3.2) (2016-11-26)
- A correct fix for "Cannot read property 'refresh_rate' of undefined" bug #71 - Thank you @codeandcats
## [2.3.1](https://github.com/MikeRogers0/LivePage/tree/2.3.1) (2016-11-04)
- Improvements to translations and removing a hardcoded string. Thank you @Hativ3 !
## [2.3.0](https://github.com/MikeRogers0/LivePage/tree/2.3.0) (2016-11-03)
- Adding in refresh delay setting into options to help users who have a multistep build process. Thanks @arechsteiner
- Only saving settings on options page if they're valid, otherwise it's revert to the default option.
- Adding experimental image support.
- Added extra note in the options page asking for a review.
- Rescoping `$livePage` to be `window.$livePage` with a check that `checkBatch()` is a function before we try and run it.
## [2.2.3](https://github.com/MikeRogers0/LivePage/tree/2.2.3) (2016-07-30)
- Added Spanish, Russian and French translations
- Improved phrasing for describing Omnibar. It's now refered to as address bar. Closed #54
- Simplified "Changes on the server" phrasing to be "updated on the server". Closed #55
## [2.2.2](https://github.com/MikeRogers0/LivePage/tree/2.2.2) (2016-07-09)
- Added German translations
## [2.2.1](https://github.com/MikeRogers0/LivePage/tree/2.2.1) (2016-07-09)
- Setup options page for internationalisation
- Added en_US and en_GB transations. Closes #51.
- Fixes issue where ports were not showing correct on options page. Closes #48.
- LivePage now attempts to persist the scroll position between reloads/redraws, closes #50 - Thank you @arechsteiner
## [2.2.0](https://github.com/MikeRogers0/LivePage/tree/2.2.0) (2016-06-24)
- New logo / icon
- Bugfix for 404's not being remove from global list correctly, fixes #49 - thank you @CodinCat
## [2.1.1](https://github.com/MikeRogers0/LivePage/tree/2.1.1) (2016-06-02)
- Fixes #39 where CSS stylesheets outside of the `<head>` tag threw an error.
- Removing option to only use "GET" requests. All requests are now GET requests. Removed LiveResource.checkHeaders() method.
- Removed unused LiveResource.sessionCache() method.
- Broke LiveResource into two objects. We now have LiveResource and LiveCSSResource.
## [2.0.1](https://github.com/MikeRogers0/LivePage/tree/2.0.1) (2016-05-22)
- By default, it now ignores CloudFlares email protection URLs, doubleclick adverts and any references to the cache breakers URL attribute.
## [2.0.0](https://github.com/MikeRogers0/LivePage/tree/2.0.0) (2016-05-20)
- Fixed bug where files being served from `http://localhost/` where not treated as local file.
- Updating options page to read more clearly
- Changed options to run in new [chrome style](https://developer.chrome.com/extensions/optionsV2). I didn't add support for [chrome.storage.sync](https://developer.chrome.com/extensions/storage) as it would require a change in permissions.
- Bumping to 2.0.0 - It's a pretty major change.
## 1.6.0
- A small code tidy up.
## [1.5.3](https://github.com/MikeRogers0/LivePage/tree/1.5.3) (2015-08-22)
- Fixing a bug where linking to CSS files was erroring out.
## [1.5.2](https://github.com/MikeRogers0/LivePage/tree/1.5.2) (2015-03-07)
- Removing LESS support, the setup I had for LESS support was not viable long term. Instead LESS has its own way of keeping its own CSS fresh ( http://lesscss.org/usage/#using-less-in-the-browser-watch-mode ).
## 1.5.1
- Updating version of LESS from 1.3.0 to 1.4.1
## 1.5.0
- Support added for monitoring additional html, css, js and less files using <link rel="livePage" href="/path/to/file"> in your HTML (Thank you to micflan for this).
- Improved support for where @import is used in an externall CSS file (Thanks damirfoy!).
## 1.4.4
- Patching issue where @import was not working on file:// protocol.
## 1.4.3
- Fixing bug with inline CSS @imports not loading correctly.
## 1.4.2
- Adding support for @import
- Fixing bug where changing session will not affect superior resources.
- Adding option to ignore inline JavaScript & hidden form values.
- Added in option to force GET requests.
- Scans the pages using document, instead of doing an ajax request - could mess up massivly.
## 1.4.1
- Fallback for when sockets between the background tab & livepage fails.
- LivePage now respects url parameters while cache breaking.
## 1.4.0.0
- Massively tidied up the livepage.js file.
- Fixed bug where localhost URLs can be problematic.
- Improved fault tolerance when polling URLs
- Added "the file your working on get polled more often" feature.
- Made "Check for newer resources every" a range field, new default for this option is 200ms from 750ms (new code structure is more efficient)
- Rearranged options page to be a little more tidier.
## 1.3.1.2
- Fixed bug where sometimes html changes were not detected.
- Moved queue push higher up the script, so it should run faster.
## 1.3.1.1
- Added option to ignore anchors in URLs. Thanks gsurrel for noticing.
- Small improvement upon I18n & L10n.
- AJAX requests now not async, this makes the backend code a little tidier.
## 1.3.1.0
- Added a test to check for if the "Allow access to file URLs" had been checked.
## 1.3.0.0
- Adding in Less, enite domain and file:// protocol support.
================================================
FILE: CONTRIBUTING.md
================================================
# How to contribute to LivePage
Thank you for your interest in helping me with LivePage! I really appreciate it!
## Found a bug?
Lets get it fixed! Please try and include as much information to replicate it as you can, ideally if you can provide the URL where LivePage is breaking, it will help me track down what is going wrong.
## Want a new feature?
I want to keep LivePage as simple as I can, though I'm always open hearing new ideas. Open an issue with your idea and I'll gladly consider it.
## Getting a Pull Request merged
I love seeing people contributing, I'll try and review all pull requests as fast as I can!
However please be aware LivePage is my side project, if I'm taking a while to respond it's because I'm limited for time.
================================================
FILE: Gruntfile.js
================================================
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-qunit-istanbul');
grunt.initConfig({
qunit: {
options: {
'--web-security': 'no',
coverage: {
disposeCollector: true,
src: ['js/**/*.js'],
instrumentedFiles: 'tmp/',
htmlReport: 'report/coverage',
coberturaReport: 'report/',
linesThresholdPct: 10,
reportOnFail: true
}
},
all: ['test/index.html']
},
});
grunt.registerTask('test', ['qunit']);
grunt.registerTask('default', ['test']);
};
================================================
FILE: LICENSE.md
================================================
GNU Affero General Public License
=================================
_Version 3, 19 November 2007_
_Copyright © 2007 Free Software Foundation, Inc. <<http://fsf.org/>>_
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
## Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are 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.
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.
Developers that use our General Public Licenses protect your rights
with two steps: **(1)** assert copyright on the software, and **(2)** offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
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 Affero 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. Remote Network Interaction; Use with the GNU General Public License
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
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 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 work with which it is combined will remain governed by version
3 of the GNU General Public License.
### 14. Revised Versions of this License
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero 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 Affero 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 Affero 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 Affero 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 Affero 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a “Source” link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
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 AGPL, see
<<http://www.gnu.org/licenses/>>.
================================================
FILE: README.md
================================================
# No longer Maintained
Unfortunately on the 10th February 2020, I decided it was time to stop supporting LivePage. Primary this is because my development process locally has changed, so I don't use it day to day. For alternatives, please consider [react-hot-loader](https://github.com/gaearon/react-hot-loader) & [Vue Loader](https://vue-loader.vuejs.org/guide/hot-reload.html).
# LivePage
LivePage is a developer tool which reloads website resources (such as CSS, HTML and JavaScript) as they change on the server, so you are always looking at the most up-to-date version of a web page. It can make developing websites a lot faster, by helping productivity. You can install LivePage via the [Chrome Web Store](https://chrome.google.com/webstore/detail/livepage/pilnojpmdoofaelbinaeodfpjheijkbh/details).
Features:
* Entire domains can be made live
* file:// protocol is now supported, though required "Allow access to file URLs" to be checked on the chrome extensions page.
It's recommended you use this extension only in a local development environment and not in a production environment.
## Running development version in Chrome
1. Clone this repo to your local machine.
2. Then visit to `chrome://extensions/` in Chrome.
3. Within the Extension page, check the "Developer Mode" checkbox.
4. A button with the label "Load unpacked extension" should have appeared, click it.
5. A modal will popup with your local file system, navigate to where you cloned the repo to and click "Select".
## "Price not available" in Chrome Web Store
If you are seeing "Price not available" as the only download option in Chrome Web Store, this is caused by Google not being able to determine your local currency. As a workaround, append `&gl=us` to the URL, for example : https://chrome.google.com/webstore/detail/livepage/pilnojpmdoofaelbinaeodfpjheijkbh?hl=en&gl=us
### Handy scripts for local development
#### Build the CSS
sass -w css/options.scss:css/options.css
#### Run the local demo folder
php -S 127.0.0.1:8000 -t demo/
### Testing
#### Setup the enviroment
Install npm, then run:
npm install -g grunt-cli &&
npm install
#### Run the tests (Qunit)
grunt qunit:all
Or drag and drop the files from `/test/index.html` into your browser.
### Releasing
Run
npm run release
Then upload the generated zip file to the chrome store.
## Roadmap
The upcoming milestones can be found [on the GitHub milestones](https://github.com/MikeRogers0/LivePage/milestones) page.
## Footnotes
Contribute on GitHub: https://github.com/MikeRogers0/LivePage
Find it in the Chrome Web Store: https://chrome.google.com/webstore/detail/pilnojpmdoofaelbinaeodfpjheijkbh/
Extension by: Mike Rogers ([@MikeRogers0](https://twitter.com/mikerogers0)) / [https://mikerogers.io/](https://mikerogers.io/)
Icon By: [Tibi Lehocz](https://creativemarket.com/VectorBurn)
LivePage was originally based on [LiveJS](http://livejs.com/) by [@mrtnkl](https://twitter.com/mrtnkl).
================================================
FILE: _locales/de/description_from_webstore.txt
================================================
LivePage ist ein Entwickler-Tool, das Website-Ressourcen (wie CSS, HTML und JavaScript) neu lädt, falls sie auf dem Server geändert wurden, so dass Sie immer die aktuellste Version einer Webseite betrachten. Damit kann die Entwicklung von Webseiten beschleunigt werden, indem produktiver gearbeitet wird.
Die wichtigsten Funktionen sind:
* Komplette Domains können live betrachetet werden
* file://-Protokoll wird jetzt unterstützt
Es wird empfohlen, dass Sie diese Erweiterung nur in einer lokalen Entwicklungsumgebung und nicht in einer Produktionsumgebung verwenden.
Alle zukünftigen Meilensteine & aktuelle Themen sind auf https://github.com/MikeRogers0/LivePage/issues zu finden.
================================================
FILE: _locales/de/messages.json
================================================
{
"name": {
"message": "LivePage"
},
"short_name": {
"message": "LivePage"
},
"description": {
"message": "LivePage lädt Website-Ressourcen (wie CSS, HTML und JavaScript) erneut, falls sie auf dem Server geändert wurden."
},
"browser_action": {
"message": "Aktivieren Sie LivePage für diese Seite"
},
"@protocol_not_supported": {
"message": "Sorry, das für diese Seite verwendete Protokoll wird nicht unterstützt."
},
"@file_protocol_needs_enabling": {
"message": "Sorry, das file://-Protokoll muss aktiviert sein. Bitte überprüfen Sie, ob auf der Erweiterungsseite (chrome://extensions/) \"Zugriff auf Datei-URLs erlauben\" für die LivePage-Erweiterung aktiviert ist."
},
"@live": {
"message": "Live"
},
"@disable_on_this_page": {
"message": "Für diese Seite LivePage deaktivieren"
},
"@disable_on_this_host": {
"message": "Für diese Domain LivePage deaktivieren"
},
"@enable_on_this_page": {
"message": "Für diese Seite LivePage aktivieren"
},
"@enable_on_this_host": {
"message": "Für diese Domain LivePage aktivieren"
},
"@options_title": {
"message": "LivePage ─ Optionen"
},
"@options_h2_url_list": {
"message": "LivePage läuft unter:"
},
"@options_url_list_empty": {
"message": "Derzeit sind keine URLs live, anklicken des Symbols neben der Omnibar ändert den Status der Seite auf live :)"
},
"@options_clear_all": {
"message": "Alles löschen"
},
"@options_h2_should_monitor": {
"message": "LivePage soll überwachen:"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript"
},
"@language_html": {
"message": "HTML"
},
"@monitor_img": {
"message": "Bilder (experimentell)"
},
"@options_livepage_links": {
"message": "LivePage-Verknüpfungen"
},
"@options_livepage_links_note": {
"message": "Überwachen Sie Ad-Hoc-Dateien mit:"
},
"@options_h2_refresh_rate": {
"message": "Polling-Einstellungen:"
},
"@options_refresh_rate": {
"message": "Poll für Änderungen alle:"
},
"@options_refresh_rate_milliseconds": {
"message": "ms"
},
"@options_refresh_rate_note": {
"message": "Bei lokaler Entwicklung können Sie 175 ms oder weniger einstellen, bei einem Live-Produktions-Server sollte die Zeit bei 250 ms oder mehr liegen."
},
"@options_h2_reload_settings": {
"message": "Aktualisierung-Einstellungen"
},
"@options_refresh_delay": {
"message": "Verzögerung zwischen dem Erkennen der Änderung und Aktualisierung der Seite:"
},
"@options_refresh_delay_note": {
"message": "Setzen Sie eine Verzögerung, wenn Sie möchten, dass LivePage wartet bis eine Seite aktualisiert wird. Das ist nützlich, wenn ein Build-Prozess zu Ende laufen muss, bevor die Seite aktualisiert wird."
},
"@options_h2_advanced_settings": {
"message": "Erweiterte Einstellungen:"
},
"@options_entire_hosts": {
"message": "Gesamte Domain überwachen"
},
"@options_skip_external": {
"message": "Externe Ressourcen wie googleapis.com oder CDNs überspringen"
},
"@options_ignore_anchors": {
"message": "URL-Anker ignorieren"
},
"@options_tidy_html": {
"message": "Kommentare in HTML ignorieren"
},
"@options_ignore_hidden_fields": {
"message": "Ignorieren Sie versteckte Felder in HTML"
},
"@options_ignore_inline_js": {
"message": "Ignorieren Sie Inline-JavaScript"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_persist_scroll_points": {
"message": "Versuchen, Scroll-X/Y-Positionen beizubehalten"
},
"@options_h2_notes": {
"message": "Hinweise:"
},
"@options_allow_access_to_files": {
"message": "Zur Nutzung des file://-Protokolls muss auf der Erweiterungsseite (chrome://extensions/) \"Zugriff auf Datei-URLs erlauben\" für die LivePage-Erweiterung aktiviert sein."
},
"@options_review_upsell": {
"message": "Bitte schreiben Sie eine Bewertung im Google Chrome Webstore, wenn Sie LivePage mögen."
},
"@options_review_link": {
"message": "Bewertung schreiben"
},
"@options_contribute_and_support": {
"message": "Mache mit und melde Bugs via GitHub"
},
"@options_developed_by": {
"message": "Entwickelt von:"
},
"@options_tweet_me": {
"message": "Tweete mir:"
}
}
================================================
FILE: _locales/en/description_from_webstore.txt
================================================
LivePage is a developer tool which reloads website resources (such as CSS, HTML and JavaScript) as they update on the server, so you are always looking at the most up-to-date version of a web page. It can make developing websites a lot faster, by helping productivity.
Features:
* Entire domains can be made live
* file:// protocol is now supported
It's recommended you use this extension only in a local development environment and not in a production environment.
All future milestones & current issues can be found on https://github.com/MikeRogers0/LivePage/issues
================================================
FILE: _locales/en/messages.json
================================================
{
"name": {
"message": "LivePage"
},
"short_name": {
"message": "LivePage"
},
"description": {
"message": "LivePage reloads website resources such as CSS, HTML and JavaScript as they update on the server."
},
"browser_action": {
"message": "Enable LivePage on this page"
},
"@protocol_not_supported": {
"message": "Sorry, the protocol used on this page is not supported."
},
"@file_protocol_needs_enabling": {
"message": "Sorry, the file:// protocol needs enabling. Please check the \"Allow access to file URLs\" for LivePage on the extensions page (chrome://extensions/)."
},
"@live": {
"message": "Live"
},
"@disable_on_this_page": {
"message": "Disable LivePage on this page"
},
"@disable_on_this_host": {
"message": "Disable LivePage for this host"
},
"@enable_on_this_page": {
"message": "Enable LivePage on this page"
},
"@enable_on_this_host": {
"message": "Enable LivePage for this host"
},
"@options_title": {
"message": "LivePage - Options"
},
"@options_h2_url_list": {
"message": "LivePage will run on:"
},
"@options_url_list_empty": {
"message": "No URLs are currently live, clicking the icon next to the address bar will make a page live :)"
},
"@options_clear_all": {
"message": "Clear All"
},
"@options_h2_should_monitor": {
"message": "LivePage should monitor:"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript"
},
"@language_html": {
"message": "HTML"
},
"@monitor_img": {
"message": "Images"
},
"@options_livepage_links": {
"message": "LivePage Links"
},
"@options_livepage_links_note": {
"message": "Monitor files specified using:"
},
"@options_h2_refresh_rate": {
"message": "Polling Settings:"
},
"@options_refresh_rate": {
"message": "Poll for updates every:"
},
"@options_refresh_rate_milliseconds": {
"message": "ms"
},
"@options_refresh_rate_note": {
"message": "Local development can safely be set to less than 175ms, developing on a live production server should be 250ms or higher."
},
"@options_h2_reload_settings": {
"message": "Reload Settings:"
},
"@options_persist_scroll_points": {
"message": "Attempt to persist scroll X/Y positions"
},
"@options_use_hard_cache_breaker": {
"message": "Append the 'livePage' attribute to URLs when polling for changes"
},
"@options_refresh_delay": {
"message": "Minimum delay before reloading:"
},
"@options_refresh_delay_milliseconds": {
"message": "ms"
},
"@options_refresh_delay_note": {
"message": "Set a delay if you want LivePage to wait before reloading the page. This is useful when you have a build process that needs to finish before a reload is triggered."
},
"@options_h2_advanced_settings": {
"message": "Advanced Settings:"
},
"@options_entire_hosts": {
"message": "Run LivePage on entire domains"
},
"@options_skip_external": {
"message": "Skip external resources such as googleapis.com or CDNs"
},
"@options_ignore_anchors": {
"message": "Ignore URL anchors"
},
"@options_tidy_html": {
"message": "Ignore comments in HTML"
},
"@options_ignore_hidden_fields": {
"message": "Ignore hidden fields in HTML"
},
"@options_ignore_inline_js": {
"message": "Ignore inline JavaScript"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_h2_notes": {
"message": "Notes:"
},
"@options_allow_access_to_files": {
"message": "To use use the file:// protocol, make sure on the extension page (chrome://extensions/), you have ticked \"Allow access to file URLs\" for the LivePage extension."
},
"@options_review_upsell": {
"message": "If you like LivePage, please consider leaving a review in the Google Chrome Webstore."
},
"@options_review_link": {
"message": "Leave a review"
},
"@options_contribute_and_support": {
"message": "Contribute & report bugs via GitHub"
},
"@options_developed_by": {
"message": "Developed by:"
},
"@options_tweet_me": {
"message": "Tweet me:"
}
}
================================================
FILE: _locales/en_GB/description_from_webstore.txt
================================================
LivePage is a developer tool which reloads website resources (such as CSS, HTML and JavaScript) as they update on the server, so you are always looking at the most up-to-date version of a web page. It can make developing websites a lot faster, by helping productivity.
Features:
* Entire domains can be made live
* file:// protocol is now supported
It's recommended you use this extension only in a local development environment and not in a production environment.
All future milestones & current issues can be found on https://github.com/MikeRogers0/LivePage/issues
================================================
FILE: _locales/en_GB/messages.json
================================================
{
"@options_contribute_and_support": {
"message": "Contribute & report bugs via GitHub"
},
"@options_developed_by": {
"message": "Built with Tea & Biscuits by"
}
}
================================================
FILE: _locales/en_US/description_from_webstore.txt
================================================
LivePage is a developer tool which reloads website resources (such as CSS, HTML and JavaScript) as they update on the server, so you are always looking at the most up-to-date version of a web page. It can make developing websites a lot faster, by helping productivity.
Features:
* Entire domains can be made live
* file:// protocol is now supported
It's recommended you use this extension only in a local development environment and not in a production environment.
All future milestones & current issues can be found on https://github.com/MikeRogers0/LivePage/issues
================================================
FILE: _locales/en_US/messages.json
================================================
{
"@options_contribute_and_support": {
"message": "Contribute & report bugs via GitHub"
},
"@options_developed_by": {
"message": "Made in London by"
},
"@options_tweet_me": {
"message": "Contact me"
}
}
================================================
FILE: _locales/es/description_from_webstore.txt
================================================
LivePage es una herramienta de desarrollador que carga los recursos de los sitios web (tales como CSS, HTML y JavaScript) a medida que cambian en el servidor, de forma que siempre veas la versión más actualizada de la página web. Puede hacer mucho más rápido el desarrollo de sitios web, ayudando a la productividad.
Características:
* Dominios completos se pueden convertir en activos
* Ahora es compatible con el protocolo file://
Se recomienda usar esta extensión únicamente en un entorno de desarrollo y no en producción.
Todos los hitos futuros y los problemas actuales se pueden encontrar en https://github.com/MikeRogers0/LivePage/issues
================================================
FILE: _locales/es/messages.json
================================================
{
"name": {
"message": "LivePage"
},
"short_name": {
"message": "LivePage"
},
"description": {
"message": "LivePage carga de nuevo recursos de sitios web tales como CSS, HTML y JavaScript cuando cambian en el servidor."
},
"browser_action": {
"message": "Habilitar LivePage en esta página"
},
"@protocol_not_supported": {
"message": "Lo sentimos, el protocolo usado en esta página no es compatible."
},
"@file_protocol_needs_enabling": {
"message": "Lo sentimos, se debe habilitar el protocolo file://. Por favor revisa \"Permitir acceso a los URL de archivo\" para LivePage en la página de extensiones (chrome://extensions/)."
},
"@live": {
"message": "En vivo"
},
"@disable_on_this_page": {
"message": "Deshabilitar LivePage en esta página"
},
"@disable_on_this_host": {
"message": "Deshabilitar LivePage para este host"
},
"@enable_on_this_page": {
"message": "Habilitar LivePage en esta página"
},
"@enable_on_this_host": {
"message": "Habilitar LivePage para este host"
},
"@options_title": {
"message": "LivePage - Opciones"
},
"@options_h2_url_list": {
"message": "LivePage se ejecuta en:"
},
"@options_url_list_empty": {
"message": "No hay URL actualmente activos, hacer clic en el ícono al lado de la omnibarra la convertirá en página activa :)"
},
"@options_clear_all": {
"message": "Borrar todo"
},
"@options_h2_should_monitor": {
"message": "LivePage debe monitorear:"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript"
},
"@language_html": {
"message": "HTML"
},
"@options_livepage_links": {
"message": "Enlaces LivePage"
},
"@options_livepage_links_note": {
"message": "Monitorear archivos adhoc usando:"
},
"@options_h2_refresh_rate": {
"message": "Ajustes de sondeo:"
},
"@options_refresh_rate": {
"message": "Sondear cambios cada:"
},
"@options_refresh_rate_milliseconds": {
"message": "ms"
},
"@options_refresh_rate_note": {
"message": "Para el desarrollo local se puede definir con seguridad en menos de 175 ms, al desarrollar en un servidor en línea de producción debe estar en 250 ms o más."
},
"@options_h2_advanced_settings": {
"message": "Ajustes avanzados:"
},
"@options_entire_hosts": {
"message": "Ejecutar LivePage en dominios completos"
},
"@options_skip_external": {
"message": "Omitir recursos externos tales como googleapis.com o CDN"
},
"@options_ignore_anchors": {
"message": "Ignorar delimitadores de los URL"
},
"@options_tidy_html": {
"message": "Ignorar comentarios en HTML"
},
"@options_ignore_hidden_fields": {
"message": "Ignorar campos ocultos en HTML"
},
"@options_ignore_inline_js": {
"message": "Ignorar JavaScript en línea"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_persist_scroll_points": {
"message": "Intentar persistencia en desplazamiento de posiciones X/Y"
},
"@options_use_hard_cache_breaker": {
"message": "Añada el atributo 'livePage' a las URL cuando busque cambios"
},
"@options_h2_notes": {
"message": "Notas:"
},
"@options_allow_access_to_files": {
"message": "Para usar el protocolo file://, asegúrate que en la página de extensiones (chrome://extensions/), hayas marcado \"Permitir acceso a los URL de archivo\" para la extensión LivePage."
},
"@options_contribute_and_support": {
"message": "Contribuciones e informes de errores en GitHub"
},
"@options_developed_by": {
"message": "Desarrollado por:"
},
"@options_tweet_me": {
"message": "Envíame un Tweet:"
}
}
================================================
FILE: _locales/fr/description_from_webstore.txt
================================================
LivePage est un outil de développement qui recharge les ressources de sites Web (CSS, HTML et JavaScript) lorsqu'elles changent sur le serveur, cela vous permet de toujours visualiser la version la plus récente d'une page Web, d'accélérer significativement le développement des sites Web et d'améliorer votre productivité.
Caractéristiques :
* L'ensemble des domaines peut être réalisé en direct
* Le protocole file:// est désormais pris en charge
Il est recommandé d'utiliser cette extension uniquement dans un environnement de développement local et non pas dans un environnement de production.
Toutes les futures étapes et les incidents en cours peuvent être trouvés sur https://github.com/MikeRogers0/LivePage/issues
================================================
FILE: _locales/fr/messages.json
================================================
{
"name": {
"message": "LivePage"
},
"short_name": {
"message": "LivePage"
},
"description": {
"message": "LivePage recharge des ressources CSS, HTML ou JavaScript de site Web dès qu'elles ont changées sur le serveur."
},
"browser_action": {
"message": "Activer LivePage sur cette page"
},
"@protocol_not_supported": {
"message": "Désolé, le protocole utilisé sur cette page n'est pas pris en charge."
},
"@file_protocol_needs_enabling": {
"message": "Désolé, le protocole file:// doit être habilité. Veuillez cocher la case « Autoriser l'accès aux URL du fichier » pour LivePage sur la page de gestion des extensions (chrome://extensions/)."
},
"@live": {
"message": "Affichage en direct"
},
"@disable_on_this_page": {
"message": "Désactiver LivePage sur cette page"
},
"@disable_on_this_host": {
"message": "Désactiver LivePage pour cet hôte"
},
"@enable_on_this_page": {
"message": "Activer LivePage sur cette page"
},
"@enable_on_this_host": {
"message": "Activer LivePage pour cet hôte"
},
"@options_title": {
"message": "LIVEPAGE : Options"
},
"@options_h2_url_list": {
"message": "LivePage s'exécutera sur :"
},
"@options_url_list_empty": {
"message": "Aucune URL n'est actuellement affichée en direct, en cliquant sur l'icône à côté de l'omnibar, la page sera ffichée en direct :)"
},
"@options_clear_all": {
"message": "Tout effacer"
},
"@options_h2_should_monitor": {
"message": "LivePage contrôlera :"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript"
},
"@language_html": {
"message": "HTML"
},
"@options_livepage_links": {
"message": "Liens LIVEPAGE"
},
"@options_livepage_links_note": {
"message": "Contrôle des fichiers ad hoc à travers :"
},
"@options_h2_refresh_rate": {
"message": "Paramètres d'interrogation :"
},
"@options_refresh_rate": {
"message": "Sondage des changements tous les :"
},
"@options_refresh_rate_milliseconds": {
"message": "ms"
},
"@options_refresh_rate_note": {
"message": "Le développement local peut être réglé à moins de 175 ms sans risques, pour les développements sur un serveur de production en direct, le réglage devra être 250 ms ou plus."
},
"@options_h2_advanced_settings": {
"message": "Réglages avancés :"
},
"@options_entire_hosts": {
"message": "Exécuter LivePage sur l'ensemble des domaines"
},
"@options_skip_external": {
"message": "Ignorer les ressources externes telles que googleapis.com ou CDNs"
},
"@options_ignore_anchors": {
"message": "Ignorer les ancrages d'URL"
},
"@options_tidy_html": {
"message": "Ignorer les commentaires en HTML"
},
"@options_ignore_hidden_fields": {
"message": "Ignorer les champs masqués en HTML"
},
"@options_ignore_inline_js": {
"message": "Ignorer le JavaScript en ligne"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_persist_scroll_points": {
"message": "Tentative de conservation du défilement des positions X/Y"
},
"@options_use_hard_cache_breaker": {
"message": "Ajoutez l'attribut 'livePage' aux URL lors de l'interrogation des modifications"
},
"@options_h2_notes": {
"message": "Remarques :"
},
"@options_allow_access_to_files": {
"message": "Pour utiliser utiliser le protocole file://, assurez-vous d'avoir coché « Autoriser l'accès aux URL de fichier » pour l'extension LivePage sur la page de gestion des extensions (chrome://extensions/)."
},
"@options_contribute_and_support": {
"message": "Aidez-nous en rapportant les bugs sur GitHub"
},
"@options_developed_by": {
"message": "Développé par :"
},
"@options_tweet_me": {
"message": "Tweetez moi :"
}
}
================================================
FILE: _locales/it/messages.json
================================================
{
"name": {
"message": "LivePage"
},
"short_name": {
"message": "LivePage"
},
"description": {
"message": "LivePage ricarica risorse di sito come CSS, HTML e JavaScript mentre vengono aggiornati sul server."
},
"browser_action": {
"message": "Attiva LivePage in questa pagina"
},
"@protocol_not_supported": {
"message": "Spiacenti, il protocollo utilizzato in questa pagina non è supportato."
},
"@file_protocol_needs_enabling": {
"message": "Spiacenti, il file: // protocollo ha bisogno di abilitazione. Controlla l'opzione \"Consenti l'accesso agli URL dei file\" per LivePage nella pagina delle estensioni (cromo: // estensioni /)."
},
"@live": {
"message": "Vivere"
},
"@disable_on_this_page": {
"message": "Disattiva LivePage in questa pagina"
},
"@disable_on_this_host": {
"message": "Disattiva LivePage per questo host"
},
"@enable_on_this_page": {
"message": "Attiva LivePage in questa pagina"
},
"@enable_on_this_host": {
"message": "Abilita LivePage per questo host"
},
"@options_title": {
"message": "LivePage - Opzioni"
},
"@options_h2_url_list": {
"message": "LivePage verrà eseguito su:"
},
"@options_url_list_empty": {
"message": "Nessun URL attualmente è in diretta, facendo clic sull'icona accanto alla barra degli indirizzi renderà una pagina in diretta :)"
},
"@options_clear_all": {
"message": "Cancella tutto"
},
"@options_h2_should_monitor": {
"message": "LivePage dovrebbe monitorare:"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript"
},
"@language_html": {
"message": "HTML"
},
"@monitor_img": {
"message": "immagini"
},
"@options_livepage_links": {
"message": "Collegamenti LivePage"
},
"@options_livepage_links_note": {
"message": "Monitorare i file specificati utilizzando:"
},
"@options_h2_refresh_rate": {
"message": "Impostazioni di polling:"
},
"@options_refresh_rate": {
"message": "Sondaggio per aggiornamenti ogni:"
},
"@options_refresh_rate_milliseconds": {
"message": "Signorina"
},
"@options_refresh_rate_note": {
"message": "Lo sviluppo locale può essere impostato in modo sicuro a meno di 175 ms, sviluppandosi su un server di produzione live deve essere di almeno 250 ms."
},
"@options_h2_reload_settings": {
"message": "Impostazioni di ricarica:"
},
"@options_persist_scroll_points": {
"message": "Tentativo di persistere le posizioni di scorrimento X / Y"
},
"@options_use_hard_cache_breaker": {
"message": "Inserisci l'attributo 'livePage' agli URL quando si effettua il polling per le modifiche"
},
"@options_refresh_delay": {
"message": "Minimo ritardo prima di ricaricare:"
},
"@options_refresh_delay_milliseconds": {
"message": "Signorina"
},
"@options_refresh_delay_note": {
"message": "Imposta un ritardo se vuoi che LivePage attenda prima di ricaricare la pagina. Ciò è utile quando si dispone di un processo di compilazione che deve terminare prima che un rilascio venga attivato."
},
"@options_h2_advanced_settings": {
"message": "Impostazioni avanzate:"
},
"@options_entire_hosts": {
"message": "Esegui LivePage su interi domini"
},
"@options_skip_external": {
"message": "Salta risorse esterne come googleapis.com o CDN"
},
"@options_ignore_anchors": {
"message": "Ignora gli ancoraggi URL"
},
"@options_tidy_html": {
"message": "Ignorare i commenti in HTML"
},
"@options_ignore_hidden_fields": {
"message": "Ignora i campi nascosti in HTML"
},
"@options_ignore_inline_js": {
"message": "Ignora JavaScript inline"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_h2_notes": {
"message": "Gli appunti:"
},
"@options_allow_access_to_files": {
"message": "Per utilizzare il protocollo file: //, assicurarsi che nella pagina di estensione (cromo // estensioni /) sia stata selezionata l'opzione \"Consenti l'accesso agli URL dei file\" per l'estensione LivePage."
},
"@options_review_upsell": {
"message": "Se ti piace LivePage, considera di lasciare una recensione nel Web Store di Google Chrome."
},
"@options_review_link": {
"message": "Lascia una recensione"
},
"@options_contribute_and_support": {
"message": "Contribuire e segnalare bug tramite GitHub"
},
"@options_developed_by": {
"message": "Sviluppato da:"
},
"@options_tweet_me": {
"message": "Mandami un tweet:"
}
}
================================================
FILE: _locales/ja/description_from_webstore.txt
================================================
ライブページは、ウェブサイトのリソース(例えばCSS、HTMLやJavaScriptなど)がサーバーで更新されると再ロードする開発者ツールなので、常にWebページの最新バージョンを見ていることになります。これで生産性が高まり、はるかに速くウェブサイトを開発することができます。
特徴:
*ドメイン全体でライブを行えます
*ファイル://プロトコルがサポートされるようになりました
プロダクション環境ではなく、ローカルの開発環境においてのみ、、この拡張子を使用することを推奨します。
今後すべてのマイルストーンと現在の問題は、https://github.com/MikeRogers0/LivePage/issuesで見つけることができます。
================================================
FILE: _locales/ja/messages.json
================================================
{
"name": {
"message": "ライブページ"
},
"short_name": {
"message": "ライブページ"
},
"description": {
"message": "ライブページは、CSS、HTMLやJavaScriptなどのウェブサイトのリソースをサーバーでアップデートされると再ロードします。"
},
"browser_action": {
"message": "このページのライブページを有効にします"
},
"@protocol_not_supported": {
"message": "申し訳ありませんが、このページ上で使用されるプロトコルがサポートされていません。"
},
"@file_protocol_needs_enabling": {
"message": "申し訳ありませんが、ファイル://プロトコルを有効にする必要があります。拡張ページのライブページ(://拡張/クローム)には、「ファイルのURLへのアクセスを許可する」をチェックしてください。"
},
"@live": {
"message": "ライブ"
},
"@disable_on_this_page": {
"message": "このページのライブページを無効にします"
},
"@disable_on_this_host": {
"message": "このホストのライブページを無効にします"
},
"@enable_on_this_page": {
"message": "このページのライブページを有効にします"
},
"@enable_on_this_host": {
"message": "このホストのライブページを有効にします"
},
"@options_title": {
"message": "ライブページ - オプション"
},
"@options_h2_url_list": {
"message": "ライブページは、次で実行されます:"
},
"@options_url_list_empty": {
"message": "URLが現在一つもライブではありません。アドレスバーの横にあるアイコンをクリックすると、ライブページを作成します:)"
},
"@options_clear_all": {
"message": "すべてクリア"
},
"@options_h2_should_monitor": {
"message": "ライブページは、次を監視します:"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript"
},
"@language_html": {
"message": "HTML"
},
"@monitor_img": {
"message": "イメージ(実験)"
},
"@options_livepage_links": {
"message": "ライブページのリンク"
},
"@options_livepage_links_note": {
"message": "指定されたファイルを次を使って監視します。"
},
"@options_h2_refresh_rate": {
"message": "投票設定:"
},
"@options_refresh_rate": {
"message": "毎回の更新のための投票:"
},
"@options_refresh_rate_milliseconds": {
"message": "ms"
},
"@options_refresh_rate_note": {
"message": "ローカルの開発は、安全に175ms未満に設定でき、ライブプロダクションサーバー上での開発は250ms秒以上である必要があります。"
},
"@options_h2_reload_settings": {
"message": "設定をリロードします。"
},
"@options_persist_scroll_points": {
"message": "スクロールX / Y位置を保持しようとしています"
},
"@options_use_hard_cache_breaker": {
"message": "変更をポーリングするときに 'livePage'属性をURLに追加する"
},
"@options_refresh_delay": {
"message": "リロードする前の最小遅延:"
},
"@options_refresh_delay_milliseconds": {
"message": "ms"
},
"@options_refresh_delay_note": {
"message": "ページをリロードする前に待機する場合は遅延時間を設定します。リロードがトリガーされる前に、ビルドプロセスを完了する必要がある場合に便利です。"
},
"@options_h2_advanced_settings": {
"message": "高度な設定:"
},
"@options_entire_hosts": {
"message": "ドメイン全体でライブページを実行します。"
},
"@options_skip_external": {
"message": "googleapis.comやCDNなどの外部リソースをスキップ"
},
"@options_ignore_anchors": {
"message": "URLアンカーを無視"
},
"@options_tidy_html": {
"message": "HTMLのコメントを無視します"
},
"@options_ignore_hidden_fields": {
"message": "HTMLの隠しフィールドを無視します"
},
"@options_ignore_inline_js": {
"message": "インラインJavaScriptを無視します"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_h2_notes": {
"message": "注:"
},
"@options_allow_access_to_files": {
"message": "ファイル://プロトコルを使用するには、拡張ページ(クローム://拡張子/)でライブページの拡張子のために、「ファイルのURLへのアクセスを許可する」チェックが入っていていることを確認してください。"
},
"@options_review_upsell": {
"message": "ライブページが気に入りましたら、Google Chromeウェブストアでレビューを残してください。"
},
"@options_review_link": {
"message": "レビューを残します"
},
"@options_contribute_and_support": {
"message": "GitHubのを経由してバグを報告&貢献する"
},
"@options_developed_by": {
"message": "開発者"
},
"@options_tweet_me": {
"message": "私をツイート:"
}
}
================================================
FILE: _locales/ko/messages.json
================================================
{
"name": {
"message": "라이브 페이지"
},
"short_name": {
"message": "라이브 페이지"
},
"description": {
"message": "LivePage는 서버에서 업데이트 할 때 CSS, HTML 및 JavaScript와 같은 웹 사이트 리소스를 다시로드합니다."
},
"browser_action": {
"message": "이 페이지에서 LivePage 사용"
},
"@protocol_not_supported": {
"message": "죄송합니다.이 페이지에서 사용 된 프로토콜은 지원되지 않습니다."
},
"@file_protocol_needs_enabling": {
"message": "죄송합니다. file : // 프로토콜을 사용하도록 설정해야합니다. 확장 페이지에서 \"파일 URL에 대한 액세스 허용\"을 확인하십시오 (chrome : // extensions /)."
},
"@live": {
"message": "살고 있다"
},
"@disable_on_this_page": {
"message": "이 페이지에서 LivePage를 비활성화하십시오."
},
"@disable_on_this_host": {
"message": "이 호스트에 대해 LivePage를 비활성화하십시오."
},
"@enable_on_this_page": {
"message": "이 페이지에서 LivePage 사용"
},
"@enable_on_this_host": {
"message": "이 호스트에서 LivePage 사용"
},
"@options_title": {
"message": "LivePage - 옵션"
},
"@options_h2_url_list": {
"message": "LivePage는 다음에서 실행됩니다."
},
"@options_url_list_empty": {
"message": "현재 라이브 URL이 없습니다. 검색 주소창 옆에있는 아이콘을 클릭하면 페이지가 라이브로 표시됩니다."
},
"@options_clear_all": {
"message": "모두 지우기"
},
"@options_h2_should_monitor": {
"message": "LivePage는 다음을 모니터링해야합니다."
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "자바 스크립트"
},
"@language_html": {
"message": "HTML"
},
"@monitor_img": {
"message": "이미지"
},
"@options_livepage_links": {
"message": "라이브 페이지 링크"
},
"@options_livepage_links_note": {
"message": "다음을 사용하여 지정된 파일 모니터 :"
},
"@options_h2_refresh_rate": {
"message": "폴링 설정 :"
},
"@options_refresh_rate": {
"message": "매주 업데이트 설문 조사 :"
},
"@options_refresh_rate_milliseconds": {
"message": "ms"
},
"@options_refresh_rate_note": {
"message": "로컬 개발은 175ms 미만으로 안전하게 설정 될 수 있으며 실제 프로덕션 서버에서 개발하는 것은 250ms 이상이어야합니다."
},
"@options_h2_reload_settings": {
"message": "새로 고침 설정 :"
},
"@options_persist_scroll_points": {
"message": "스크롤 X / Y 위치 유지 시도"
},
"@options_use_hard_cache_breaker": {
"message": "변경 사항을 폴링 할 때 URL에 'livePage'속성을 추가하십시오."
},
"@options_refresh_delay": {
"message": "다시로드하기 전의 최소 지연 시간 :"
},
"@options_refresh_delay_milliseconds": {
"message": "ms"
},
"@options_refresh_delay_note": {
"message": "LiveUpdate가 페이지를 다시로드하기 전에 대기하게하려면 지연을 설정하십시오. 재로드가 트리거되기 전에 완료해야하는 빌드 프로세스가있는 경우에 유용합니다."
},
"@options_h2_advanced_settings": {
"message": "고급 설정 :"
},
"@options_entire_hosts": {
"message": "전체 도메인에서 LivePage 실행"
},
"@options_skip_external": {
"message": "googleapis.com 또는 CDN과 같은 외부 리소스 건너 뛰기"
},
"@options_ignore_anchors": {
"message": "URL 앵커 무시"
},
"@options_tidy_html": {
"message": "HTML의 주석 무시"
},
"@options_ignore_hidden_fields": {
"message": "HTML에서 숨겨진 필드 무시"
},
"@options_ignore_inline_js": {
"message": "인라인 JavaScript 무시"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_h2_notes": {
"message": "노트:"
},
"@options_allow_access_to_files": {
"message": "file : // 프로토콜을 사용하려면 확장 페이지 (chrome : // extensions /)에서 LivePage 확장에 대해 \"파일 URL에 대한 액세스 허용\"을 선택했는지 확인하십시오."
},
"@options_review_upsell": {
"message": "LivePage가 마음에 들면 Chrome 웹 스토어에 리뷰를 남기는 것이 좋습니다."
},
"@options_review_link": {
"message": "리뷰 남기기"
},
"@options_contribute_and_support": {
"message": "GitHub를 통해 버그 신고 및 기고"
},
"@options_developed_by": {
"message": "개발자 :"
},
"@options_tweet_me": {
"message": "짹 짹짹 :"
}
}
================================================
FILE: _locales/pt/messages.json
================================================
{
"name": {
"message": "LivePage"
},
"short_name": {
"message": "LivePage"
},
"description": {
"message": "O LivePage recarrega recursos do site, como CSS, HTML e JavaScript, pois atualizam no servidor."
},
"browser_action": {
"message": "Ativar LivePage nesta página"
},
"@protocol_not_supported": {
"message": "Desculpe, o protocolo usado nesta página não é suportado."
},
"@file_protocol_needs_enabling": {
"message": "Desculpe, o arquivo: // protocolo precisa ativar. Verifique o \"Permitir acesso a URLs de arquivos\" para o LivePage na página de extensões (cromo: // extensões /)."
},
"@live": {
"message": "Viver"
},
"@disable_on_this_page": {
"message": "Desativar LivePage nesta página"
},
"@disable_on_this_host": {
"message": "Desativar LivePage para este host"
},
"@enable_on_this_page": {
"message": "Ativar LivePage nesta página"
},
"@enable_on_this_host": {
"message": "Ativar LivePage para este host"
},
"@options_title": {
"message": "LivePage - Opções"
},
"@options_h2_url_list": {
"message": "LivePage será executado em:"
},
"@options_url_list_empty": {
"message": "Nenhum URL está atualmente ao vivo, clicar no ícone ao lado da barra de endereços fará uma página ao vivo :)"
},
"@options_clear_all": {
"message": "Limpar tudo"
},
"@options_h2_should_monitor": {
"message": "LivePage deve monitorar:"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript"
},
"@language_html": {
"message": "HTML"
},
"@monitor_img": {
"message": "Imagens"
},
"@options_livepage_links": {
"message": "Links do LivePage"
},
"@options_livepage_links_note": {
"message": "Monitorar arquivos especificados usando:"
},
"@options_h2_refresh_rate": {
"message": "Configurações de Polling:"
},
"@options_refresh_rate": {
"message": "Poll para atualizações a cada:"
},
"@options_refresh_rate_milliseconds": {
"message": "Senhora"
},
"@options_refresh_rate_note": {
"message": "O desenvolvimento local pode ser configurado com segurança para menos de 175ms, o desenvolvimento em um servidor de produção ao vivo deve ser de 250ms ou superior."
},
"@options_h2_reload_settings": {
"message": "Atualizar Configurações:"
},
"@options_persist_scroll_points": {
"message": "Tentativa de persistir nas posições X / Y de rolagem"
},
"@options_use_hard_cache_breaker": {
"message": "Anexe o atributo 'livePage' aos URLs ao pesquisar as alterações"
},
"@options_refresh_delay": {
"message": "Duração mínima antes do recarregamento:"
},
"@options_refresh_delay_milliseconds": {
"message": "Senhora"
},
"@options_refresh_delay_note": {
"message": "Defina um atraso se quiser que o LivePage aguarde antes de recarregar a página. Isso é útil quando você possui um processo de compilação que precisa ser concluído antes que um recarregamento seja ativado."
},
"@options_h2_advanced_settings": {
"message": "Configurações avançadas:"
},
"@options_entire_hosts": {
"message": "Execute LivePage em domínios inteiros"
},
"@options_skip_external": {
"message": "Ignore recursos externos como googleapis.com ou CDNs"
},
"@options_ignore_anchors": {
"message": "Ignorar as âncoras de URL"
},
"@options_tidy_html": {
"message": "Ignorar comentários em HTML"
},
"@options_ignore_hidden_fields": {
"message": "Ignorar campos ocultos em HTML"
},
"@options_ignore_inline_js": {
"message": "Ignorar JavaScript embutido"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_h2_notes": {
"message": "Notas:"
},
"@options_allow_access_to_files": {
"message": "Para usar use o protocolo arquivo: //, certifique-se na página de extensão (cromo: // extensões /), você marcou \"Permitir acesso a URLs de arquivos\" para a extensão LivePage."
},
"@options_review_upsell": {
"message": "Se você gosta do LivePage, considere deixar uma análise no Google Chrome Webstore."
},
"@options_review_link": {
"message": "Deixe um comentário"
},
"@options_contribute_and_support": {
"message": "Contribuir e relatar erros através do GitHub"
},
"@options_developed_by": {
"message": "Desenvolvido por:"
},
"@options_tweet_me": {
"message": "Tweet:"
}
}
================================================
FILE: _locales/pt_BR/description_from_webstore.txt
================================================
O LivePage é uma ferramenta de desenvolvimento que recarrega recursos de sites (tais como CSS, HTML e JavaScript), à medida que são atualizados no servidor, de tal forma que você estará sempre com a versão mais recente das páginas da web. Ele pode tornar o andamento dos sites muito mais rápido, ajudando na produtividade.
Recursos:
* Domínios inteiros podem ser ao vivo
* Arquivo: //protocol agora compatível
Recomenda-se o uso desta extensão apenas em ambiente de desenvolvimento local e não em ambiente de produção.
Todos os futuros marcos e questões atuais podem ser encontrados no tise https://github.com/MikeRogers0/LivePage/issues
================================================
FILE: _locales/pt_BR/messages.json
================================================
{
"name": {
"message": "LivePage"
},
"short_name": {
"message": "LivePage"
},
"description": {
"message": "O LivePage recarrega recursos como CSS, HTML e JavaScript à medida que são atualizados no servidor."
},
"browser_action": {
"message": "Habilitar o LivePage nessa página"
},
"@protocol_not_supported": {
"message": "O protocolo utilizado nessa página não é compatível."
},
"@file_protocol_needs_enabling": {
"message": "O arquivo:// protocol precisa ser habilitado. Marque a opção \"Permitir acesso à URLs de arquivos\" no LivePage na página de extensões (chrome://extensions/)."
},
"@live": {
"message": "Ao vivo"
},
"@disable_on_this_page": {
"message": "Desabilitar o LivePage nessa página"
},
"@disable_on_this_host": {
"message": "Desabilitar o LivePage neste host"
},
"@enable_on_this_page": {
"message": "Habilitar o LivePage nessa página"
},
"@enable_on_this_host": {
"message": "Desabilitar o LivePage neste host"
},
"@options_title": {
"message": "LivePage - Opções"
},
"@options_h2_url_list": {
"message": "O LivePage funciona em:"
},
"@options_url_list_empty": {
"message": "Não há URLs a atualizar no momento. Clique no ícone próximo à barra de endereços para acessar essa página ao vivo:)"
},
"@options_clear_all": {
"message": "Limpar tudo"
},
"@options_h2_should_monitor": {
"message": "O LivePage monitora:"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript"
},
"@language_html": {
"message": "HTML"
},
"@monitor_img": {
"message": "Imagens (Experimental)"
},
"@options_livepage_links": {
"message": "Links do LivePage"
},
"@options_livepage_links_note": {
"message": "Monitorar arquivos especificados utilizando:"
},
"@options_h2_refresh_rate": {
"message": "Configurações de enquetes"
},
"@options_refresh_rate": {
"message": "Enquete para atualizações a cada:"
},
"@options_refresh_rate_milliseconds": {
"message": "ms"
},
"@options_refresh_rate_note": {
"message": "O desenvolvimento local pode ser configurado para menos de 175 ms. O desenvolvimento em servidor de produção ao vivo, requer 250 ms ou superior."
},
"@options_h2_reload_settings": {
"message": "Recarregar configurações:"
},
"@options_persist_scroll_points": {
"message": "Tentativa de persistir nas posições de deslocamento X/Y"
},
"@options_use_hard_cache_breaker": {
"message": "Anexe o atributo 'livePage' aos URLs ao pesquisar as alterações"
},
"@options_refresh_delay": {
"message": "Retardo mínimo antes de recarregar:"
},
"@options_refresh_delay_milliseconds": {
"message": "ms"
},
"@options_refresh_delay_note": {
"message": "Defina o retardo que desejar. O LivePage aguarda antes de recarregar a página. Isto é útil quando você tem um processo de desenvolvimento que deve ser encerrado antes que uma recarga seja acionada."
},
"@options_h2_advanced_settings": {
"message": "Configurações avançadas:"
},
"@options_entire_hosts": {
"message": "Executar o LivePage em domínios inteiros"
},
"@options_skip_external": {
"message": "Ignorar os recursos externos, como Googleapis.com ou CDNs"
},
"@options_ignore_anchors": {
"message": "Ignorar âncoras de URL"
},
"@options_tidy_html": {
"message": "Ignorar comentários em HTML"
},
"@options_ignore_hidden_fields": {
"message": "Ignorar campos ocultos em HTML"
},
"@options_ignore_inline_js": {
"message": "Ignorar JavaScript em linha"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_h2_notes": {
"message": "Observações:"
},
"@options_allow_access_to_files": {
"message": "Para utilizar o arquivo: // protocol, certifique-se de que, na página da extensão (chrome://extensions /), você tenha marcado \"Permitir acesso aos URLs do arquivo\" para a extensão LivePage."
},
"@options_review_upsell": {
"message": "Se você gostou do LivePage, deixe seus comentários no Google Chrome Webstore."
},
"@options_review_link": {
"message": "Deixar um comentário"
},
"@options_contribute_and_support": {
"message": "Contribuir e relatar problemas via GitHub"
},
"@options_developed_by": {
"message": "Desenvolvido por:"
},
"@options_tweet_me": {
"message": "Envie um Tweet:"
}
}
================================================
FILE: _locales/ru/description_from_webstore.txt
================================================
LivePage - инструмент разработчика, который перезагружает ресурсы веб-сайта (например, CSS, HTML и JavaScript) по мере их обновления на сервере, что дает вам возможность всегда видеть самую свежую версию веб-страницы. Это помогает осуществлять разработку веб-сайтов намного быстрее, повышая производительность.
Особенности:
* Может работать на целых доменах
* Протокол file:// теперь поддерживается
Рекомендуется использовать это расширение только в локальной среде разработки, а не в производственной среде.
Все следующие этапы и текущие вопросы можно найти на https://github.com/MikeRogers0/LivePage/issues
================================================
FILE: _locales/ru/messages.json
================================================
{
"name": {
"message": "LivePage"
},
"short_name": {
"message": "LivePage"
},
"description": {
"message": "LivePage перезагружает ресурсы веб-сайта, такие как CSS, HTML и JavaScript, по мере того как они обновляются на сервере."
},
"browser_action": {
"message": "Включить LivePage на этой странице"
},
"@protocol_not_supported": {
"message": "К сожалению используемый на этой странице протокол не поддерживается."
},
"@file_protocol_needs_enabling": {
"message": "Извините, протокол file:// требует активации. Пожалуйста, отметьте \"Разрешить доступ к URL-адресам файлов\" для LivePage на странице расширений (chrome://extensions/)."
},
"@live": {
"message": "Live"
},
"@disable_on_this_page": {
"message": "Отключить LivePage на этой странице"
},
"@disable_on_this_host": {
"message": "Отключить LivePage для этого хоста"
},
"@enable_on_this_page": {
"message": "Включить LivePage на этой странице"
},
"@enable_on_this_host": {
"message": "Включить LivePage для этого хоста"
},
"@options_title": {
"message": "LivePage - Опции"
},
"@options_h2_url_list": {
"message": "LivePage будет работать на:"
},
"@options_url_list_empty": {
"message": "В настоящее время обрабатываемых URL-адресов нет. Нажатие на значок рядом с Omnibar активирует страницу :)"
},
"@options_clear_all": {
"message": "Очистить все"
},
"@options_h2_should_monitor": {
"message": "LivePage должен отслеживать:"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript"
},
"@language_html": {
"message": "HTML"
},
"@options_livepage_links": {
"message": "Ссылки LivePage"
},
"@options_livepage_links_note": {
"message": "Отслеживать файлы Adhoc с помощью:"
},
"@options_h2_refresh_rate": {
"message": "Настройка проверки:"
},
"@options_refresh_rate": {
"message": "Проверять обновления каждые:"
},
"@options_refresh_rate_milliseconds": {
"message": "мс"
},
"@options_refresh_rate_note": {
"message": "Комфортное значение для сервера разработки - менее 175ms, значение на рабочем сервере должно быть 250мс или выше."
},
"@options_h2_advanced_settings": {
"message": "Расширенные настройки:"
},
"@options_entire_hosts": {
"message": "Запускать LivePage на целых доменах"
},
"@options_skip_external": {
"message": "Пропускать внешние ресурсы, такие как googleapis.com или CDN"
},
"@options_ignore_anchors": {
"message": "Игнорировать URL-якори"
},
"@options_tidy_html": {
"message": "Игнорировать комментарии в HTML"
},
"@options_ignore_hidden_fields": {
"message": "Игнорировать скрытые поля в HTML"
},
"@options_ignore_inline_js": {
"message": "Игнорировать встроенный JavaScript"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_persist_scroll_points": {
"message": "Пытаться прокручивать X/Y позиции"
},
"@options_use_hard_cache_breaker": {
"message": "Добавляйте атрибут «livePage» к URL-адресам при опросе изменений"
},
"@options_h2_notes": {
"message": "Примечания:"
},
"@options_allow_access_to_files": {
"message": "Чтобы использовать протокол file://, убедитесь, что на странице расширения (chrome://extensions/), вы поставили галочку \"Разрешить доступ к URL-адресов файлов\" для расширения LivePage."
},
"@options_contribute_and_support": {
"message": "Сообщите об ошибках через GitHub"
},
"@options_developed_by": {
"message": "Разработчик:"
},
"@options_tweet_me": {
"message": "Твитнуть мне:"
}
}
================================================
FILE: _locales/zh-CN/messages.json
================================================
{
"name": {
"message": "LivePage"
},
"short_name": {
"message": "LivePage"
},
"description": {
"message": "LivePage会在服务器上更新时重新载入CSS,HTML和JavaScript等网站资源。"
},
"browser_action": {
"message": "在此页面上启用LivePage"
},
"@protocol_not_supported": {
"message": "对不起,此页面上使用的协议不受支持。"
},
"@file_protocol_needs_enabling": {
"message": "对不起,文件://协议需要启用。请在扩展页面(chrome:// extensions /)上查看LivePage的“允许访问文件URL”。"
},
"@live": {
"message": "生活"
},
"@disable_on_this_page": {
"message": "在此页面上禁用LivePage"
},
"@disable_on_this_host": {
"message": "禁用此主机的LivePage"
},
"@enable_on_this_page": {
"message": "在此页面上启用LivePage"
},
"@enable_on_this_host": {
"message": "为此主机启用LivePage"
},
"@options_title": {
"message": "LivePage - 选项"
},
"@options_h2_url_list": {
"message": "LivePage将运行:"
},
"@options_url_list_empty": {
"message": "目前没有网址直播,点击地址栏旁边的图标可以让页面生效:)"
},
"@options_clear_all": {
"message": "全部清除"
},
"@options_h2_should_monitor": {
"message": "LivePage应该监视:"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript的"
},
"@language_html": {
"message": "HTML"
},
"@monitor_img": {
"message": "图片"
},
"@options_livepage_links": {
"message": "LivePage链接"
},
"@options_livepage_links_note": {
"message": "使用以下命令监视文件"
},
"@options_h2_refresh_rate": {
"message": "轮询设置:"
},
"@options_refresh_rate": {
"message": "投票更新每个:"
},
"@options_refresh_rate_milliseconds": {
"message": "女士"
},
"@options_refresh_rate_note": {
"message": "本地开发可以安全地设置为小于175ms,在实时生产服务器上开发应该是250ms或更高。"
},
"@options_h2_reload_settings": {
"message": "重新加载设置:"
},
"@options_persist_scroll_points": {
"message": "尝试持续滚动X / Y位置"
},
"@options_use_hard_cache_breaker": {
"message": "在轮询更改时,将“livePage”属性附加到URL"
},
"@options_refresh_delay": {
"message": "重新加载前的最小延迟:"
},
"@options_refresh_delay_milliseconds": {
"message": "女士"
},
"@options_refresh_delay_note": {
"message": "如果您希望LivePage在重新加载页面之前等待,请设置延迟。当您有一个构建过程需要在重新加载触发之前完成时,这很有用。"
},
"@options_h2_advanced_settings": {
"message": "高级设置:"
},
"@options_entire_hosts": {
"message": "在整个域上运行LivePage"
},
"@options_skip_external": {
"message": "跳过外部资源,如googleapis.com或CDN"
},
"@options_ignore_anchors": {
"message": "忽略网址锚点"
},
"@options_tidy_html": {
"message": "忽略HTML中的注释"
},
"@options_ignore_hidden_fields": {
"message": "忽略HTML中的隐藏字段"
},
"@options_ignore_inline_js": {
"message": "忽略内联JavaScript"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_h2_notes": {
"message": "笔记:"
},
"@options_allow_access_to_files": {
"message": "要使用file://协议,请确保在扩展页面(chrome:// extensions /)上,您已经勾选了LivePage扩展名为“允许访问文件URL”。"
},
"@options_review_upsell": {
"message": "如果您喜欢LivePage,请考虑在Google Chrome Webstore中留下评论。"
},
"@options_review_link": {
"message": "留下评论"
},
"@options_contribute_and_support": {
"message": "通过GitHub贡献和报告错误"
},
"@options_developed_by": {
"message": "由开发:"
},
"@options_tweet_me": {
"message": "给我发消息"
}
}
================================================
FILE: _locales/zh-TW/messages.json
================================================
{
"name": {
"message": "LivePage"
},
"short_name": {
"message": "LivePage"
},
"description": {
"message": "LivePage會在服務器上更新時重新載入CSS,HTML和JavaScript等網站資源。"
},
"browser_action": {
"message": "在此頁面上啟用LivePage"
},
"@protocol_not_supported": {
"message": "對不起,此頁面上使用的協議不受支持。"
},
"@file_protocol_needs_enabling": {
"message": "對不起,文件://協議需要啟用。請在擴展頁面(chrome:// extensions /)上查看LivePage的“允許訪問文件URL”。"
},
"@live": {
"message": "生活"
},
"@disable_on_this_page": {
"message": "在此頁面上禁用LivePage"
},
"@disable_on_this_host": {
"message": "禁用此主機的LivePage"
},
"@enable_on_this_page": {
"message": "在此頁面上啟用LivePage"
},
"@enable_on_this_host": {
"message": "為此主機啟用LivePage"
},
"@options_title": {
"message": "LivePage - 選項"
},
"@options_h2_url_list": {
"message": "LivePage將運行:"
},
"@options_url_list_empty": {
"message": "目前沒有網址直播,點擊地址欄旁邊的圖標可以讓頁面生效:)"
},
"@options_clear_all": {
"message": "全部清除"
},
"@options_h2_should_monitor": {
"message": "LivePage應該監視:"
},
"@language_css": {
"message": "CSS"
},
"@language_javascript": {
"message": "JavaScript的"
},
"@language_html": {
"message": "HTML"
},
"@monitor_img": {
"message": "圖片"
},
"@options_livepage_links": {
"message": "LivePage鏈接"
},
"@options_livepage_links_note": {
"message": "使用以下命令監視文件"
},
"@options_h2_refresh_rate": {
"message": "輪詢設置:"
},
"@options_refresh_rate": {
"message": "投票更新每個:"
},
"@options_refresh_rate_milliseconds": {
"message": "女士"
},
"@options_refresh_rate_note": {
"message": "本地開發可以安全地設置為小於175ms,在實時生產服務器上開發應該是250ms或更高。"
},
"@options_h2_reload_settings": {
"message": "重新加載設置:"
},
"@options_persist_scroll_points": {
"message": "嘗試持續滾動X / Y位置"
},
"@options_use_hard_cache_breaker": {
"message": "在輪詢更改時,將“livePage”屬性附加到URL"
},
"@options_refresh_delay": {
"message": "重新加載前的最小延遲:"
},
"@options_refresh_delay_milliseconds": {
"message": "女士"
},
"@options_refresh_delay_note": {
"message": "如果您希望LivePage在重新加載頁面之前等待,請設置延遲。當您有一個構建過程需要在重新加載觸發之前完成時,這很有用。"
},
"@options_h2_advanced_settings": {
"message": "高級設置:"
},
"@options_entire_hosts": {
"message": "在整個域上運行LivePage"
},
"@options_skip_external": {
"message": "跳過外部資源,如googleapis.com或CDN"
},
"@options_ignore_anchors": {
"message": "忽略網址錨點"
},
"@options_tidy_html": {
"message": "忽略HTML中的註釋"
},
"@options_ignore_hidden_fields": {
"message": "忽略HTML中的隱藏字段"
},
"@options_ignore_inline_js": {
"message": "忽略內聯JavaScript"
},
"@options_h2_blocked_url_list": {
"message": "Blocked URLs & Files:"
},
"@options_blocked_url_list_note": {
"message": "Add URLs & filenames separated by a line break. If any of your pages resources match a blocked file, it will not be tracked."
},
"@options_h2_notes": {
"message": "筆記:"
},
"@options_allow_access_to_files": {
"message": "要使用file://協議,請確保在擴展頁面(chrome:// extensions /)上,您已經勾選了LivePage擴展名為“允許訪問文件URL”。"
},
"@options_review_upsell": {
"message": "如果您喜歡LivePage,請考慮在Google Chrome Webstore中留下評論。"
},
"@options_review_link": {
"message": "留下評論"
},
"@options_contribute_and_support": {
"message": "通過GitHub貢獻和報告錯誤"
},
"@options_developed_by": {
"message": "由開發:"
},
"@options_tweet_me": {
"message": "給我發消息"
}
}
================================================
FILE: css/options.css
================================================
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
body {
font-family: 'Open Sans', sans-serif;
background: #D5E6ED;
margin: 0;
padding: 0 0 20px 0;
min-width: 750px; }
a {
color: #0198CB;
text-decoration: none; }
a:hover {
text-decoration: underline; }
.container {
overflow: hidden; }
section {
padding: 12px 20px;
background: #fff;
border: none;
display: block; }
section.review-upsell {
text-align: center; }
h2 {
margin: 0 0 10px 0;
font-weight: 600; }
h3 {
font-size: 18px;
margin: 0 0 10px 0;
font-weight: 600;
font-size: 16px; }
ul {
list-style: none;
padding: 0;
margin: 0; }
ul#host_list {
margin-bottom: 16px; }
ul li {
list-style: none;
padding: 3px 0 12px 0;
margin: 0;
line-height: 100%; }
ul li:last-child {
padding-bottom: 0; }
form label {
display: block;
padding: 0; }
form input[type="checkbox"] {
margin-right: 15px; }
form input[type="number"] {
width: 48px;
margin-left: 6px; }
form textarea {
width: 50%;
min-width: 20%;
max-width: 90%;
min-height: 60px; }
input[type="range"] {
width: 50%;
margin-top: 5px; }
footer {
padding: 0 20px; }
footer ul {
margin: 10px 0;
padding: 0;
overflow: hidden;
color: #42464F;
float: left;
width: 50%; }
footer ul:last-child {
float: right;
text-align: right; }
footer ul li {
list-style: none;
padding: 3px 10px 3px 10px;
margin: 0; }
footer a {
color: #42464F; }
.allow-access-to-files {
width: 100%;
max-width: 739px;
margin: 0 auto;
display: block; }
/*# sourceMappingURL=options.css.map */
================================================
FILE: css/options.scss
================================================
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
body {
font-family: 'Open Sans', sans-serif;
background: #D5E6ED;
margin: 0;
padding: 0 0 20px 0;
min-width: 750px;
}
a {
color: #0198CB;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
.container {
overflow: hidden;
}
section {
padding: 12px 20px;
background: #fff;
border: none;
display: block;
&.review-upsell {
text-align: center;
}
}
h2 {
margin: 0 0 10px 0;
font-weight: 600;
}
h3 {
font-size: 18px;
margin: 0 0 10px 0;
font-weight: 600;
font-size: 16px;
}
ul {
list-style: none;
padding: 0;
margin: 0;
&#host_list {
margin-bottom: 16px;
}
li {
list-style: none;
padding: 3px 0 12px 0;
margin: 0;
line-height: 100%;
&:last-child {
padding-bottom: 0;
}
}
}
form {
label {
display: block;
padding: 0;
}
input[type="checkbox"] {
margin-right: 15px;
}
input[type="number"] {
width: 48px;
margin-left: 6px;
}
textarea {
width: 50%;
min-width: 20%;
max-width: 90%;
min-height: 60px;
}
}
input[type="range"] {
width: 50%;
margin-top: 5px;
}
footer {
padding: 0 20px;
ul {
margin: 10px 0;
padding: 0;
overflow: hidden;
color: #42464F;
float: left;
width: 50%;
&:last-child {
float: right;
text-align: right;
}
li {
list-style: none;
padding: 3px 10px 3px 10px;
margin: 0;
}
}
a {
color: #42464F;
}
}
.allow-access-to-files {
width: 100%;
max-width: 739px;
margin: 0 auto;
display: block;
}
================================================
FILE: demo/body.css
================================================
.somebody {
color: #43f;
font-weight: normal;
}
================================================
FILE: demo/css_test.css
================================================
@import url(//fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,700,300,400);
h1 {
font-size: 20px;
}
.hello_world { }
.hello_world p {
font-weight: normal;
color: #ddd;
}
p{ display: none; }
.past_the_scroll_point {
margin-top: 1800px;
}
================================================
FILE: demo/css_test_2.css
================================================
p{ display: block; }
================================================
FILE: demo/imported.css
================================================
.imported {
display: none;
}
================================================
FILE: demo/index.html
================================================
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CSS Test</title>
<link rel="stylesheet" href="css_test.css">
<link rel="stylesheet" href="css_test_2.css">
<link rel="stylesheet" href="https://rawgit.com/RhoInc/Webcharts/master/css/webcharts.css">
<style type="text/css">@import url("imported.css");</style>
</head>
<body>
<h1>LivePage</h1>
<div class="hello_world">
<p>Hello World</p>
</div>
<div class="image">
<img src="cat-in-hat.jpg" width="475" />
</div>
<div class="somebody">
<p>Hello World</p>
</div>
<div class="imported">
<p>Imported CSS</p>
</div>
<div class="imported_up_folder_css">
<p>Imported Up folder file</p>
</div>
<input type="hidden" value="Hello World" />
<script type="text/javascript">document.write("Hello World");</script>
<div class="past_the_scroll_point">
Change me and scrolling to hold me in place :) Awesoem? no?
</div>
<link rel="stylesheet" href="body.css">
</body>
</html>
================================================
FILE: demo/relative.html
================================================
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Relative path Test</title>
<link rel="stylesheet" href="src/index.css">
</head>
<body>
<p>Recreating <a href="https://github.com/MikeRogers0/LivePage/issues/112#issuecomment-349264222">https://github.com/MikeRogers0/LivePage/issues/112#issuecomment-349264222</a></p>
</body>
</html>
================================================
FILE: demo/src/css/imported.css
================================================
/*
* I'm imported relatively.
* /
================================================
FILE: demo/src/index.css
================================================
@import url("css/imported.css");
================================================
FILE: js/background.js
================================================
// Add the listners
// When a page tell us it has has loaded successfully, it tells us & we start the script.
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse){
var tab = sender.tab;
// If it's some other message, ignore it.
if(request.action != "injected"){
return;
}
if (!supportedProtocol(tab)) {
return false;
}
// If livepage is on this guy, lets start it.
if (livepages.isLive(tab.url)) {
livepages.start(tab);
} else {
livepages.setEnableOnText(tab);
}
});
// The script which will reload the tabs (it got weird on file://)
chrome.extension.onMessage.addListener(function(request, sender, sendResponse) {
if (request.action == 'reload') {
chrome.tabs.reload(sender.tab.id, {
bypassCache: true
});
}
});
// If the user clicks the icon - make the site liveJS enanabled/disabled
chrome.browserAction.onClicked.addListener(function(tab) {
// Check it's a supported protocol
if (!supportedProtocol(tab)) {
alert(chrome.i18n.getMessage('@protocol_not_supported'));
return false;
}
// If the page is Live, make it not live.
if (livepages.isLive(tab.url)) {
livepages.remove(tab);
} else {
// It's not live, so start LivePage on it.
// If it's file:// check we have permission (file:// access enabled) to run LivePage on it.
if (tab.url.indexOf('file://') == 0 && typeof sessionStorage['file-test'] == 'undefined') {
// Throw an error in a moment.
var exec_error = setTimeout(function() {
alert(chrome.i18n.getMessage('@file_protocol_needs_enabling'));
}, 100);
// Now check the file responds to our JS request, if it won't the above error will be thrown.
chrome.tabs.sendRequest(tab.id, 'Ping', function(result) {
if (result === 'Pong') {
clearTimeout(exec_error);
sessionStorage['file-test'] = true;
livepages.add(tab);
}
});
} else {
livepages.add(tab);
}
}
});
chrome.runtime.onInstalled.addListener(function() {
//chrome.tabs.create({'url': 'https://livepage.mikerogers.io/thank-you.html'}, function(window) {});
});
================================================
FILE: js/content_scripts/file_protocol_test.js
================================================
// Based on http://pastebin.com/3deXunJV because Chromes API dosen't throw errors!
chrome.extension.onRequest.addListener(function(req, sender, respond) {
if (req === 'Ping') {
respond('Pong');
}
});
================================================
FILE: js/content_scripts/on_inject_callback.js
================================================
// When a page has loaded (This script is injected), we tell LivePage to start its job!
chrome.runtime.sendMessage( { action: "injected" } );
================================================
FILE: js/helpers/i18n_helper.js
================================================
/*
* i18n Helper
* Makes working with googles i18n a touch cleaner.
*/
function i18nHelper(){}
// Depending on users 'entire_hosts' setting returns
// @enable_on_this_(page/site)
// Allows us to be more specifc with 18in
i18nHelper.prototype.enable_on = function(){
return chrome.i18n.getMessage(settings.options.entire_hosts ? "@enable_on_this_host" : "@enable_on_this_page");
}
i18nHelper.prototype.disable_on = function(){
return chrome.i18n.getMessage(settings.options.entire_hosts ? "@disable_on_this_page" : "@disable_on_this_host");
}
i18nHelper.prototype.url_list_empty = function(){
return chrome.i18n.getMessage("@options_url_list_empty");
}
/*
* Populates a span with the key from the i18n
*/
i18nHelper.prototype.populateElementsCopy = function(){
inputElements = document.querySelectorAll('input[data-i18n-key]');
spanElements = document.querySelectorAll('[data-i18n-key]:not(input)');
for (var key = 0; key < inputElements.length; key++) {
var inputElement = inputElements[key]
inputElement.value = chrome.i18n.getMessage(inputElement.attributes["data-i18n-key"].value)
}
for (var key = 0; key < spanElements.length; key++) {
var spanElement = spanElements[key]
spanElement.innerText = chrome.i18n.getMessage(spanElement.attributes["data-i18n-key"].value)
}
}
================================================
FILE: js/helpers/tab_helper.js
================================================
/*
* A collection of helpful functions used when interacting with tabs.
*/
// Checks if the protocol is one javascript will let livepage run on.
function supportedProtocol(tab) {
// Quickly check were ok to work on this URL:
return (tab.url.indexOf('https://') == 0 || tab.url.indexOf('http://') == 0 || tab.url.indexOf('file://') == 0);
}
// Runs all the scripts one after the other, this stop problems where one scripts slow execution breaks everything.
function executeScriptsInSerial(tabId, scripts) {
var script = scripts.splice(0, 1)[0];
chrome.tabs.executeScript(tabId, script, function() {
if (scripts.length) {
executeScriptsInSerial(tabId, scripts);
}
});
}
================================================
FILE: js/injected/live_css_resource.js
================================================
/*
* LiveCSSResource Object
*/
function LiveCSSResource(url, media, ownerNode) {
this.url = url;
this.element = ownerNode;
this.media = media;
}
LiveCSSResource.prototype = new LiveResource();
LiveCSSResource.prototype.constructor = LiveCSSResource;
/*
* Refresh the element in place
*/
LiveCSSResource.prototype.refresh = function(){
var _this = this;
// create a new html element
var cssElement = document.createElement('link');
cssElement.addEventListener("load", function(){
_this.element.parentNode.removeChild(_this.element);
// Update reference
_this.element = cssElement;
// Restore the scroll point
window.$livePage.restoreScrollPosition();
});
cssElement.setAttribute("type", "text/css");
cssElement.setAttribute("rel", "stylesheet");
cssElement.setAttribute("href", this.nonCacheURL());
cssElement.setAttribute("media", this.media);
// Replace the new one in the palace of the old one.
this.element.parentNode.insertBefore(cssElement, this.element)
}
================================================
FILE: js/injected/live_img_resource.js
================================================
/*
* LiveImgResource Object
*/
function LiveImgResource(url, element) {
this.url = url;
this.element = element;
}
LiveImgResource.prototype = new LiveResource();
LiveImgResource.prototype.constructor = LiveImgResource;
/*
* Refresh the element in place
*/
LiveImgResource.prototype.refresh = function(){
this.element.setAttribute("src", this.nonCacheURL());
}
================================================
FILE: js/injected/live_resource.js
================================================
/*
* LiveResource Object
*/
function LiveResource(url) {
this.url = url;
}
LiveResource.prototype.method = "GET";
LiveResource.prototype.cache = '';
LiveResource.prototype.response = '';
LiveResource.prototype.xhr = null;
/*
* Generated a URL with a cache breaker in it.
*/
LiveResource.prototype.nonCacheURL = function() {
if (window.$livePage.options.use_hard_cache_breaker === false) {
return this.url;
}
if (this.url.indexOf('?') > 0) {
return this.url + '&livePage=' + (new Date() * 1);
}
return this.url + '?livePage=' + (new Date() * 1);
}
/*
* Checks if a newer version of the file is there.
*/
LiveResource.prototype.check = function(callback) {
var _this = this;
var _callback = callback;
this.xhr = new XMLHttpRequest();
this.xhr.open("GET", this.nonCacheURL());
this.xhr.setRequestHeader('Cache-Control', 'no-cache');
// Timeout or error, remove the resource
this.xhr.ontimeout = this.xhr.onerror = function(){
window.$livePage.removeResource(_this.url);
}
this.xhr.onreadystatechange = function() {
// If it 404s, remove the resource
if (this.status == 404) {
window.$livePage.removeResource(_this.url);
}
if (this.readyState == 4){
_callback();
}
if (this.readyState == 4 && this.status != 304) {
// Firstly, tidy up the code
_this.response = _this.tidyCode(this.responseText);
// If this is the first check, cache it and than move along.
if (_this.cache == '' && _this.response != '') {
_this.cache = _this.response;
return;
}
// Compare the headers && responseText
if (_this.checkResponse()) {
setTimeout(function(){
window.$livePage.saveScrollPosition();
_this.refresh();
}, window.$livePage.options.refresh_delay);
}
}
}
this.xhr.onerror = function(){};
this.xhr.send();
}
/*
* Compares the responseText to the cached.
*/
LiveResource.prototype.checkResponse = function() {
if (this.response != '' && this.cache != this.response) {
this.cache = this.response;
return true;
}
return false;
}
/*
* Refresh the code
*/
LiveResource.prototype.refresh = function() {
// Now reload the page.
try {
// This can let us reload the page & force a cache reload.
chrome.extension.sendMessage({
action: 'reload'
}, function() {});
} catch (e) {
// An error occoured refreshing the page with the chrome socket. Do it differently.
document.location.reload(window.$livePage.url);
}
}
/*
* Tidies up HTML (Removes comments and whitespace), if the users wants.
*/
LiveResource.prototype.tidyCode = function(html) {
if (window.$livePage.options.tidy_html == true) {
// Remove comments and whitespace.
html = html.replace(/<!--([\s\S]*?)-->/gim, '');
html = html.replace(/ /gim, ' ');
html = html.replace(/(\r\n|\n|\r|\t\s)/gim, '');
// Remove CloudFlare's email protection URLs
html = html.replace(/href\=\"\/cdn-cgi\/l\/email-protection#(.*?)"/gim, '');
// Remove references to LivePages cache breaker
html = html.replace(/livePage=([0-9]+)/gim, '');
// Ignore doubleclick links
html = html.replace(/"https:\/\/ad.doubleclick.net(.*?)"/gim, '');
}
if (window.$livePage.options.ignore_hidden_fields === true) {
// Remove script tags and hidden inputs
html = html.replace(/<input(.*?)hidden(.*?)>/gim, "");
}
if (window.$livePage.options.ignore_inline_js === true) {
// Remove script tags and hidden inputs
html = html.replace(/<script\b[^>]*>([\s\S]*?)<\/script>/gim, "");
}
return html;
}
================================================
FILE: js/injected/livepage.js
================================================
/*
* LivePage is based on Live.js by Martin Kool (@mrtnkl).
* Rewritten by Mike Rogers (@MikeRogers0)
*/
function livePage(config) {
// Set up some defaults variables
this.options = config;
this.options.enabled = true;
this.resources = [];
this.lastChecked = 0;
this.url = document.URL;
};
/*
* Asks the page to scan itself, than looks for elements to track.
*/
livePage.prototype.scanPage = function() {
// Add resources checkers in here
if (this.options.monitor_css == true) {
this.scanCSS();
}
if (this.options.monitor_js == true) {
this.scanJS();
}
if (this.options.monitor_img == true) {
this.scanImg();
}
if (this.options.monitor_custom == true) {
this.scanCustom();
}
if (this.options.monitor_html == true) {
this.addResource( new LiveResource(this.url) );
}
// Randomise the checking process, so were not hitting groups the same of files.
this.resources.sort(function() {
return 0.5 - Math.random();
});
this.checkBatch();
}
livePage.prototype.scanJS = function(){
elements = document.querySelectorAll('script[src*=".js"]');
for (var key = 0; key < elements.length; key++) {
this.addResource(new LiveResource(elements[key].src));
}
};
livePage.prototype.scanImg = function(){
elements = document.querySelectorAll('img[src*="."]');
for (var key = 0; key < elements.length; key++) {
this.addResource(new LiveImgResource(elements[key].src, elements[key]));
}
};
livePage.prototype.scanCSS = function(){
styleSheets = document.styleSheets;
for (var key = 0; key < styleSheets.length; key++) {
var sheet = styleSheets[key];
if (sheet) {
// If it has a href we can monitor
if (sheet.href) {
this.addResource(new LiveCSSResource(sheet.href, sheet.media.mediaText, sheet.ownerNode));
}
// Now lets checks for @import stuff within this stylesheet.
try {
if (sheet.cssRules != null && sheet.cssRules.length > 0) {
for (var ruleKey = 0; ruleKey < sheet.cssRules.length; ruleKey++) {
var rule = sheet.cssRules[ruleKey];
if (rule && rule.href && rule.styleSheet.href) {
this.addResource(new LiveResource(rule.styleSheet.href));
}
}
}
} catch(error) {
// TODO
// External stylesheets don't let me read their rules anymore. I'll have
// parse their contents by reading them with AJAX (boo!).
}
}
}
};
livePage.prototype.scanCustom = function(){
elements = document.querySelectorAll('link[rel="livePage"]');
for (var key = 0; key < elements.length; key++) {
if (elements[key].href) {
this.addResource(new LiveResource(elements[key].href));
}
}
};
/*
* Adds live resources to the list of trackable objects.
*/
livePage.prototype.addResource = function(resource) {
// Normalize the URL
resource.url = this.normalizeURL(resource.url);
// Check the URL is ok
if (!this.trackableURL(resource.url)) {
return false;
}
this.resources[this.lastChecked++] = resource;
}
/*
*
*/
livePage.prototype.removeResource = function(url) {
for (r in this.resources) {
if (this.resources[r].url == url) {
delete this.resources[r];
}
}
// Now shuffle the stack.
this.resources.sort(function() {
return 0.5 - Math.random();
});
}
/*
* Normalise the URL. - Remove anything after a #
*/
livePage.prototype.normalizeURL = function(url) {
if (this.options.ignore_anchors == true) {
url = url.split('#');
return url[0];
}
return url;
}
/*
* saveScrollPosition / restoreScrollPosition
* Keeps page looking at some scrolll position
* Handy for when you're working on the bottom of a page between
* reloads and redraws.
*/
livePage.prototype.saveScrollPosition = function() {
if( !this.options.persist_scroll_points || !this.supportsSessionStorage() ){
return;
}
sessionStorage.setItem("livepage-scrollpoints", JSON.stringify({
scrollX: window.scrollX,
scrollY: window.scrollY
}));
}
livePage.prototype.restoreScrollPosition = function() {
if( !this.options.persist_scroll_points || !this.supportsSessionStorage() ){
return;
}
var scrollPoints = JSON.parse(sessionStorage.getItem("livepage-scrollpoints"));
// No points? Don't restore anything.
if(scrollPoints == null){
return false;
}
window.scroll(scrollPoints.scrollX, scrollPoints.scrollY);
sessionStorage.removeItem("livepage-scrollpoints");
}
livePage.prototype.supportsSessionStorage = function() {
try {
window.sessionStorage
} catch( e ) {
return false;
}
return true;
}
/*
* Tells LivePage if the URL is ok.
*/
livePage.prototype.trackableURL = function(url) {
if (this.options.skip_external == false) {
return true;
}
// Return false when the URL matches anything in the blocked URL list.
for(var i in this.options.blocked_url_list) {
if( url.indexOf(this.options.blocked_url_list[i]) !== -1 ) {
return false;
}
}
// Always return true for Localhosts
if(
url.indexOf("localhost") !== -1 ||
url.indexOf("127.0.0.1") !== -1 ||
url.indexOf("file://") !== -1
){
return true;
}
var parsedUrl = document.createElement('a');
parsedUrl.href = url;
// When no host exists, return we can track this.
if(parsedUrl.host === "" ){
return true;
}
// The hosts match, we can track this.
if(location.href.indexOf( parsedUrl.host ) !== -1 ){
return true;
}
return false;
}
/*
* Lets us check the resources in small batches.
*/
livePage.prototype.checkBatch = function() {
if (this.options.enabled == false) {
return false;
}
this.check();
}
/*
* Triggers a resource check.
*/
livePage.prototype.check = function() {
// Que up the next resource, if it dosen't exist start again.
this.lastChecked++;
if (this.resources[this.lastChecked] == undefined) {
this.lastChecked = 0;
if (this.resources[this.lastChecked] == undefined) { // Nothing left to check
window.$livePage.options.enabled = false;
return;
}
}
this.resources[this.lastChecked].check(function(){
setTimeout(function() {
if( typeof(window.$livePage.checkBatch) == "function" ){
window.$livePage.checkBatch();
}
}, window.$livePage.options.refresh_rate);
});
}
if (typeof window.$livePageConfig == "object") {
window.$livePage = new livePage(window.$livePageConfig);
window.$livePage.restoreScrollPosition();
window.$livePage.scanPage();
}
================================================
FILE: js/livepages.js
================================================
/*
* The livePages object, manages making pages live & storing the live setting.
*/
function livePages() {
// The object of pages we have marked as live.
this.livePages = {};
this.i18n = new i18nHelper();
this.refresh();
};
// Refreshes livePages from database.
livePages.prototype.refresh = function() {
this.livePages = settings.get('livePages');
if (settings.get('livePages') == null) {
this.livePages = {};
}
};
// Wipes the database of all live pages.
livePages.prototype.removeAll = function() {
settings.set('livePages', {});
};
/*
* Transforms the URLS into the type the users have configured.
*/
livePages.prototype.cleanURL = function(url) {
settings.refresh();
var a = document.createElement('a');
a.href = url;
// If they only want entire hosts, just return the host name
if (settings.options.entire_hosts == true) {
if (a.hostname != '') {
return a.hostname;
}
// Fallback for file:// protocol if there isn't one.
return 'Local Files (file://)';
}
/*
* Strips the hash from the URL.
* See https://developer.mozilla.org/en-US/docs/DOM/window.location#Properties for more info about the properties
*/
if (settings.options.ignore_anchors == true) {
if( a.port === "" || a.port === 80 || a.port === 443 ){
return a.protocol + '//' + a.hostname + a.pathname + a.search;
} else {
return a.protocol + '//' + a.hostname + ":" + a.port + a.pathname + a.search;
}
}
return url;
}
// Deletes a url from livePages list.
livePages.prototype.remove = function(tab) {
this.refresh();
tab.url = this.cleanURL(tab.url);
delete this.livePages[tab.url];
settings.set('livePages', this.livePages);
this.stop(tab);
};
// Add page to LivePages.
livePages.prototype.add = function(tab) {
this.refresh();
tab.url = this.cleanURL(tab.url);
this.livePages[tab.url] = true;
settings.set('livePages', this.livePages);
this.start(tab);
};
// Check if the url is on the livePages list.
livePages.prototype.isLive = function(url) {
this.refresh();
url = this.cleanURL(url);
if (typeof this.livePages[url] != "undefined") {
return true;
}
return false;
};
// Turns on the LivePage on the tab.
livePages.prototype.start = function(tab) {
settings.refresh();
// Update the Icon
chrome.browserAction.setBadgeText({
text: chrome.i18n.getMessage('@live'),
tabId: tab.id
});
chrome.browserAction.setTitle({
title: this.i18n.disable_on(),
tabId: tab.id
});
// Make the page Live
executeScriptsInSerial(tab.id, [
{ code: 'window.$livePageConfig = ' + JSON.stringify(settings.options) + '; window.$livePage = false;' },
{ file: 'js/injected/live_resource.js' },
{ file: 'js/injected/live_css_resource.js' },
{ file: 'js/injected/live_img_resource.js' },
{ file: 'js/injected/livepage.js' }
]);
}
// Turns off live page on the tab.
livePages.prototype.stop = function(tab) {
// Stop live page running if it's there.
chrome.tabs.executeScript(tab.id, {
code: 'if(typeof window.$livePage != "undefined"){ window.$livePage.options.enabled = false; }'
});
this.setEnableOnText(tab);
}
livePages.prototype.setEnableOnText = function(tab) {
chrome.browserAction.setBadgeText({
text: '',
tabId: tab.id
});
chrome.browserAction.setTitle({
title: this.i18n.enable_on(),
tabId: tab.id
});
}
var livepages = new livePages();
================================================
FILE: js/options.js
================================================
// Set the global varibles.
var host_list = document.querySelector('#host_list');
var clear_all = document.querySelector('#clear_all');
var settingFields = document.querySelectorAll('#options select, #options input[type="checkbox"], #options input[type="range"], #options input[type="number"], #options textarea');
// Add the change event, so we can fire changes on load.
var changeEvent = document.createEvent('Event');
changeEvent.initEvent('change', true, false);
// i18n up the page
livepages.i18n.populateElementsCopy();
function textListToArray(body) {
var array = body.replace(/\r\n/g,"\n").replace(/\n\n/g,"\n").split("\n");
// Remove any empty objects
return array.filter(function (element) {
return element != "";
});
}
// Build the listner for when options are updated.
function updateValue(e) {
var elm = e.srcElement; // the elements which was clicked.
// If something invalid has been added, clear the value of the element
if(elm.validity.valid != true) {
settings.remove(elm.id, elm.checked);
return;
}
if (elm.getAttribute('data-save-as-array') === "true") {
settings.set(elm.id, textListToArray(elm.value));
} else if (elm.getAttribute('type') == 'checkbox') {
settings.set(elm.id, elm.checked);
} else {
settings.set(elm.id, elm.value);
}
}
// build the listner for when all the URL's are cleared.
function clearLivePages() {
host_list.innerHTML = host_list.innerHTML = '<li>' + livepages.i18n.url_list_empty() + '</li>';
livepages.removeAll();
}
// Add the list of URLs/Hosts were tracking
host_list.innerHTML = '<li>' + livepages.i18n.url_list_empty() + '</li>';
if (livepages.livePages != undefined) {
for (var i in livepages.livePages) {
host_list.innerHTML = '';
break;
}
for (var i in livepages.livePages) {
host_list.innerHTML += '<li><a href="' + i + '">' + i + '</a></li>';
}
}
// Add the clear all listner
clear_all.addEventListener('click', clearLivePages, false);
// now update the checkboxes and select field with values from the database.
for (var key = 0; key < settingFields.length; key++) {
if (settingFields[key].getAttribute('data-save-as-array') === "true") {
debugger;
settingFields[key].value = '' + settings.get(settingFields[key].id).join("\n");
} else if (settingFields[key].getAttribute('type') == 'checkbox') {
// If the checkbox value is the same as the one in the database check it
settingFields[key].checked = false; // uncheck it by default
if (settingFields[key].getAttribute('value') == '' + settings.get(settingFields[key].id)) {
settingFields[key].checked = true;
}
} else {
// Otherwise it's a normal input field, so treat it as such.
settingFields[key].value = '' + settings.get(settingFields[key].id);
}
// now add the listner
settingFields[key].addEventListener('change', updateValue, false);
}
for (var key = 0; key < settingFields.length; key++) {
settingFields[key].dispatchEvent(changeEvent);
}
================================================
FILE: js/settings.js
================================================
/*
* The Settings object, it stores users options.
*/
function Settings() {
// Set the default options:
this.options = {
monitor_css: true,
monitor_js: true,
monitor_html: true,
monitor_img: false,
monitor_custom: true,
hosts_session: false,
skip_external: true,
entire_hosts: false,
ignore_anchors: true,
tidy_html: true,
ignore_hidden_fields: true,
ignore_inline_js: true,
refresh_rate: 200,
refresh_delay: 1,
persist_scroll_points: true,
use_hard_cache_breaker: false,
blocked_url_list: [
"https://sample-blocked-host.com/",
"sample-blocked-file.js",
"/jquery.min.js",
"/bootstrap.min.css",
"fonts.googleapis.com",
".bootstrapcdn.com",
"maxcdn.bootstrapcdn.com",
"://code.jquery.com/",
"://pagecdn.io/",
"://cdnjs.cloudflare.com",
"://cdn.jsdelivr.net",
"://ajax.googleapis.com",
"://ajax.aspnetcdn.com",
"://unpkg.com"
]
};
// Check for old settings and do the upgrade
this.refresh();
};
/*
* LocalStorage functions based on https://github.com/Gaya/Locale-Storager
*/
Settings.prototype.set = function(key, value) {
localStorage.setItem(key, JSON.stringify(value));
};
Settings.prototype.get = function(key) {
// if we don't have the setting, fallback to the default one.
var getSetting = JSON.parse(localStorage.getItem(key));
if (getSetting !== null) {
return getSetting;
}
//console.log(key+' : '+getSetting+' so returning '+this.options[key]);
return this.options[key];
};
Settings.prototype.remove = function(key) {
localStorage.removeItem(key);
return true;
};
Settings.prototype.refresh = function() {
for (var key in this.options) {
this.options[key] = this.get(key);
}
return true;
};
var settings = new Settings();
================================================
FILE: manifest.json
================================================
{
"name": "__MSG_name__",
"short_name": "__MSG_short_name__",
"version": "2.7.0",
"manifest_version": 2,
"description": "__MSG_description__",
"default_locale": "en",
"background": {
"scripts": [
"js/helpers/tab_helper.js",
"js/helpers/i18n_helper.js",
"js/settings.js",
"js/livepages.js",
"js/background.js"
]
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["js/content_scripts/file_protocol_test.js"],
"run_at": "document_end"
},
{
"matches": ["<all_urls>"],
"js": ["js/content_scripts/on_inject_callback.js"],
"run_at": "document_end"
}
],
"options_ui": {
"page": "options.html",
"chrome_style": true
},
"default_locale": "en",
"content_security_policy": "script-src 'self'; object-src 'self';",
"permissions": [
"tabs", "<all_urls>"
],
"browser_action": {
"default_title": "__MSG_browser_action__",
"default_icon": "imgs/icon.png"
},
"icons": {
"16": "imgs/icon.png",
"48": "imgs/icon.png",
"128": "imgs/icon.png"
},
"minimum_chrome_version": "55",
"offline_enabled": true,
"author": "Mike Rogers",
"homepage_url": "https://chrome.google.com/webstore/detail/livepage/pilnojpmdoofaelbinaeodfpjheijkbh"
}
================================================
FILE: options.html
================================================
<!DOCTYPE html>
<html>
<head>
<title data-i18n-key="@options_title"></title>
<link rel="stylesheet" href="/css/options.css">
</head>
<body>
<form id="options" name="options" action="#">
<section>
<h2 data-i18n-key="@options_h2_url_list"></h2>
<ul id="host_list">
<li data-i18n-key="@options_url_list_empty"></li>
</ul>
<input type="button" id="clear_all" value="Clear all" data-i18n-key="@options_clear_all" />
</section>
<section>
<h2 data-i18n-key="@options_h2_should_monitor"></h2>
<ul>
<li>
<label>
<input id="monitor_css" name="monitor_css" type="checkbox" value="true" />
<span data-i18n-key="@language_css"></span>
</label>
</li>
<li>
<label>
<input id="monitor_js" name="monitor_js" type="checkbox" value="true" />
<span data-i18n-key="@language_javascript"></span>
</label>
</li>
<li>
<label>
<input id="monitor_html" name="monitor_html" type="checkbox" value="true" />
<span data-i18n-key="@language_html"></span>
</label>
</li>
<li>
<label>
<input id="monitor_img" name="monitor_img" type="checkbox" value="true" />
<span data-i18n-key="@monitor_img"></span>
</label>
</li>
<li>
<label>
<input id="monitor_custom" name="monitor_custom" type="checkbox" value="true" />
<span data-i18n-key="@options_livepage_links"></span>
-
<em data-i18n-key="@options_livepage_links_note"></em>
<em><link rel="livePage" href="/path/to/file.html" /></em>
</label>
</li>
</ul>
</section>
<section>
<h2 data-i18n-key="@options_h2_refresh_rate"></h2>
<ul>
<li>
<label>
<span data-i18n-key="@options_refresh_rate"></span>
<input id="refresh_rate" type="number" name="refresh_rate" min="50" step="25" value="200" required />
<span data-i18n-key="@options_refresh_rate_milliseconds"></span>
</label>
<p><em data-i18n-key="@options_refresh_rate_note"></em></p>
</li>
</ul>
</section>
<section>
<h2 data-i18n-key="@options_h2_reload_settings"></h2>
<ul>
<li>
<label>
<span data-i18n-key="@options_refresh_delay"></span>
<input id="refresh_delay" type="number" name="refresh_delay" min="1" step="5" value="250" required />
<span data-i18n-key="@options_refresh_delay_milliseconds"></span>
</label>
<p><em data-i18n-key="@options_refresh_delay_note"></em></p>
</li>
</ul>
</section>
<section>
<h2 data-i18n-key="@options_h2_advanced_settings"></h2>
<ul>
<li>
<label>
<input id="entire_hosts" name="entire_hosts" type="checkbox" value="true" />
<span data-i18n-key="@options_entire_hosts"></span>
</label>
</li>
<li>
<label>
<input id="skip_external" name="skip_external" type="checkbox" value="true" />
<span data-i18n-key="@options_skip_external"></span>
</label>
</li>
<li>
<label>
<input id="ignore_anchors" name="ignore_anchors" type="checkbox" value="true" />
<span data-i18n-key="@options_ignore_anchors"></span>
</label>
</li>
<li>
<label>
<input id="tidy_html" name="tidy_html" type="checkbox" value="true" />
<span data-i18n-key="@options_tidy_html"></span>
</label>
</li>
<li>
<label>
<input id="ignore_hidden_fields" name=ignore_hidden_fields" type="checkbox" value="true" />
<span data-i18n-key="@options_ignore_hidden_fields"></span>
</label>
</li>
<li>
<label>
<input id="ignore_inline_js" name="ignore_inline_js" type="checkbox" value="true" />
<span data-i18n-key="@options_ignore_inline_js"></span>
</label>
</li>
<li>
<label>
<input id="persist_scroll_points" name="persist_scroll_points" type="checkbox" value="true" />
<span data-i18n-key="@options_persist_scroll_points"></span>
</label>
</li>
<li>
<label>
<input id="use_hard_cache_breaker" name="use_hard_cache_breaker" type="checkbox" value="true" />
<span data-i18n-key="@options_use_hard_cache_breaker"></span>
</label>
</li>
</ul>
</section>
<section>
<h2 data-i18n-key="@options_h2_blocked_url_list"></h2>
<ul>
<li>
<label>
<textarea id="blocked_url_list" name="blocked_url_list" data-save-as-array="true"></textarea>
</label>
<p><em data-i18n-key="@options_blocked_url_list_note"></em></p>
</li>
</ul>
</section>
<section>
<h2 data-i18n-key="@options_h2_notes"></h2>
<p data-i18n-key="@options_allow_access_to_files"></p>
<p><img src="/imgs/allow-access-to-files.png" alt="Check allow access to files" class="allow-access-to-files"></p>
<p>
<span data-i18n-key="@options_review_upsell"></span>
<br />
<a href="https://chrome.google.com/webstore/detail/livepage/pilnojpmdoofaelbinaeodfpjheijkbh/reviews" target="_blank"><span data-i18n-key="@options_review_link"></span></a>
</p>
</section>
</form>
<footer>
<ul>
<li><a href="https://github.com/MikeRogers0/LivePage" data-i18n-key="@options_contribute_and_support"></a></li>
</ul>
<ul>
<li>
<span data-i18n-key="@options_developed_by"></span>
<a href="https://mikerogers.io/">Mike Rogers</a>
</li>
<li>
<span data-i18n-key="@options_tweet_me"></span>
<a href="https://twitter.com/MikeRogers0">@MikeRogers0</a>
</li>
</ul>
</footer>
<script src="/js/helpers/i18n_helper.js"></script>
<script src="/js/settings.js"></script>
<script src="/js/livepages.js"></script>
<script src="/js/options.js"></script>
</body>
</html>
================================================
FILE: package.json
================================================
{
"name": "LivePage",
"private": true,
"scripts": {
"test": "grunt test",
"release": "bash release.sh"
},
"dependencies": {
"timekeeper": "^2.0.0",
"translate-json-object": "^2.3.0"
},
"devDependencies": {
"grunt": "~1.0.0",
"grunt-contrib-qunit": "~1.0.0",
"grunt-qunit-istanbul": "~1.0.0",
"qunitjs": "~2.0.0"
}
}
================================================
FILE: release.sh
================================================
#!/usr/bin/env bash
zip LivePage-`git describe --abbrev=0 --tags`.zip _locales/*/* css/* imgs/* js/* js/*/* CHANGELOG.md LICENSE.md manifest.json options.html README.md
================================================
FILE: tasks/translation.js
================================================
var TJO = require('translate-json-object')();
var fs = require('fs');
var enTranslation = JSON.parse(fs.readFileSync('../_locales/en/messages.json', 'utf8'));
var enTranslationStoreDescription = JSON.parse(JSON.stringify({text: fs.readFileSync('../_locales/en/description_from_webstore.txt', 'utf8')}));
TJO.init({
// Get a key from: https://console.cloud.google.com/apis/credentials
googleApiKey: ''
});
//var languages = ['af', 'am', 'ar', 'az', 'be', 'bg', 'bn', 'bs', 'ca', 'ceb', 'co', 'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'fy', 'ga', 'gd', 'gl', 'gu', 'ha', 'haw', 'hi', 'hmn', 'hr', 'ht', 'hu', 'hy', 'id', 'ig', 'is', 'it', 'iw', 'ja', 'jw', 'ka', 'kk', 'km', 'kn', 'ko', 'ku', 'ky', 'la', 'lb', 'lo', 'lt', 'lv', 'ma', 'mg', 'mi', 'mk', 'ml', 'mn', 'mr', 'ms', 'mt', 'my', 'ne', 'nl', 'no', 'ny', 'pl', 'ps', 'pt', 'ro', 'ru', 'sd', 'si', 'sk', 'sl', 'sm', 'sn', 'so', 'sq', 'sr', 'st', 'su', 'sv', 'sw', 'ta', 'te', 'tg', 'th', 'tl', 'tr', 'uk', 'ur', 'uz', 'vi', 'xh', 'yi', 'yo', 'zh-CN', 'zh-TW', 'zu']
var languages = ['pt', 'ko', 'zh-CN', 'zh-TW']
function translateMessages(targetLanguage) {
return new Promise(resolve => {
TJO.translate(enTranslation, targetLanguage)
.then(function(data) {
if (!fs.existsSync('../_locales/' + targetLanguage)){
fs.mkdirSync('../_locales/' + targetLanguage);
}
fs.writeFileSync('../_locales/' + targetLanguage + '/messages.json', JSON.stringify(data, null, 2), 'utf8');
resolve();
}).catch(function(err) {
console.log('error ', err)
});
});
}
async function main() {
for(i in languages) {
console.log('Translating: ' + languages[i]);
await translateMessages(languages[i]);
}
};
main();
================================================
FILE: test/index.html
================================================
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>LivePage</title>
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
<script type="text/javascript" src="../js/helpers/tab_helper.js"></script>
<script type="text/javascript" src="../js/helpers/i18n_helper.js"></script>
<script type="text/javascript" src="../js/injected/live_resource.js"></script>
<script type="text/javascript" src="../js/injected/live_img_resource.js"></script>
<script type="text/javascript" src="../js/injected/live_css_resource.js"></script>
<script type="text/javascript" src="../js/injected/livepage.js"></script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture">
</div>
<script type="text/javascript" src="../node_modules/qunitjs/qunit/qunit.js"></script>
<script type="text/javascript" src="../node_modules/timekeeper/lib/timekeeper.js"></script>
<!--
<script src="units/helpers/i18n_helper_test.js"></script>
<script src="units/injected/live_resource_test.js"></script>
<script src="units/injected/live_img_resource_test.js"></script>
<script src="units/injected/live_css_resource_test.js"></script>
-->
<script src="units/helpers/tab_helper_test.js"></script>
<script src="units/injected/livepage_test.js"></script>
<script src="units/injected/live_resource_test.js"></script>
</head>
</body>
</html>
================================================
FILE: test/units/helpers/tab_helper_test.js
================================================
QUnit.module( "supportedProtocol" );
QUnit.test( "Returns false for unsupported protocol", function( assert ) {
var tab = { url: "chrome://extensions/" };
assert.equal( supportedProtocol(tab), false );
});
QUnit.test( "Returns true for supported protocol", function( assert ) {
var tab = { url: "file:///Users/Mike/Downloads/somepage.html" };
assert.equal( supportedProtocol(tab), true );
tab = { url: "https://mikerogers.io/" };
assert.equal( supportedProtocol(tab), true );
tab = { url: "http://mikerogers.io/" };
assert.equal( supportedProtocol(tab), true );
});
================================================
FILE: test/units/injected/live_resource_test.js
================================================
QUnit.module( "nonCacheURL", {
beforeEach: function(){
timekeeper.freeze(new Date());
},
afterEach: function(){
timekeeper.reset();
}
} );
QUnit.test( "Append the cache breaker when hard caching is enabled", function( assert ) {
window.$livePage = {};
window.$livePage.options = {};
window.$livePage.options.use_hard_cache_breaker = true;
assert.equal( new LiveResource('http://www.site.com/').nonCacheURL(), "http://www.site.com/"+ '?livePage=' + (new Date() * 1) );
assert.equal( new LiveResource('http://www.site.com/?apple=true').nonCacheURL(), "http://www.site.com/?apple=true" + '&livePage=' + (new Date() * 1) );
window.$livePage.options.use_hard_cache_breaker = false;
assert.equal( new LiveResource('http://www.site.com/').nonCacheURL(), "http://www.site.com/" );
assert.equal( new LiveResource('http://www.site.com/?apple=true').nonCacheURL(), "http://www.site.com/?apple=true" );
});
================================================
FILE: test/units/injected/livepage_test.js
================================================
QUnit.module( "normalizeURL" );
QUnit.test( "Return everything before the # in a url when ignore_anchors is enabled", function( assert ) {
assert.equal( new livePage({}).normalizeURL("http://www.site.com/"), "http://www.site.com/" );
assert.equal( new livePage({ignore_anchors: true}).normalizeURL("http://www.site.com/#hello"), "http://www.site.com/" );
assert.equal( new livePage({ignore_anchors: false}).normalizeURL("http://www.site.com/#hello"), "http://www.site.com/#hello" );
});
QUnit.module( "trackableURL" );
QUnit.test( "When user doesn't want to skip external, return true for all.", function( assert ) {
// Always return true when false as it means we want to track all resources.
assert.equal( new livePage({skip_external: false}).trackableURL("http://www.site.com/"), true );
assert.equal( new livePage({skip_external: false}).trackableURL("http://localhost/somethingelse"), true );
});
QUnit.test( "Returns boolean if a URL is external to the current site", function( assert ) {
// Return true for localhosts
assert.equal( new livePage({skip_external: true}).trackableURL("http://localhost/"), true );
assert.equal( new livePage({skip_external: true}).trackableURL("https://127.0.0.1/"), true );
assert.equal( new livePage({skip_external: true}).trackableURL("file:///Users/SomeFile.html"), true );
assert.equal( new livePage({skip_external: true}).trackableURL("SomeFile.html"), true );
assert.equal( new livePage({skip_external: true}).trackableURL("user/SomeFile.html"), true );
assert.equal( new livePage({skip_external: true}).trackableURL("/User/SomeFile.html"), true );
assert.equal( new livePage({skip_external: true}).trackableURL("http://localhost/somethingelse"), true );
assert.equal( new livePage({skip_external: true}).trackableURL("http://localhost:3300/"), true );
assert.equal( new livePage({skip_external: true}).trackableURL("http://localhost:3300/somethingelse"), true );
assert.equal( new livePage({skip_external: true}).trackableURL(location.href), true );
// Ignore external stuff
assert.equal( new livePage({skip_external: true}).trackableURL("https://google.com/"), false);
assert.equal( new livePage({skip_external: true}).trackableURL("https://google.com/thefilename"), false);
});
QUnit.test( "Returns false when host contains blacklisted url", function( assert ) {
// Always return true when false as it means we want to track all resources.
assert.equal( new livePage({skip_external: true, blocked_url_list: ['blocked-file.js']}).trackableURL("file:///Users/blocked-file.js"), false );
assert.equal( new livePage({skip_external: true, blocked_url_list: ['blocked-file.css']}).trackableURL("file:///Users/blocked-file.js"), true );
});
gitextract_y5kjkvis/
├── .gitignore
├── .ruby-version
├── .travis.yml
├── CHANGELOG.md
├── CONTRIBUTING.md
├── Gruntfile.js
├── LICENSE.md
├── README.md
├── _locales/
│ ├── de/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── en/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── en_GB/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── en_US/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── es/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── fr/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── it/
│ │ └── messages.json
│ ├── ja/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── ko/
│ │ └── messages.json
│ ├── pt/
│ │ └── messages.json
│ ├── pt_BR/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── ru/
│ │ ├── description_from_webstore.txt
│ │ └── messages.json
│ ├── zh-CN/
│ │ └── messages.json
│ └── zh-TW/
│ └── messages.json
├── css/
│ ├── options.css
│ └── options.scss
├── demo/
│ ├── body.css
│ ├── css_test.css
│ ├── css_test_2.css
│ ├── imported.css
│ ├── index.html
│ ├── relative.html
│ └── src/
│ ├── css/
│ │ └── imported.css
│ └── index.css
├── js/
│ ├── background.js
│ ├── content_scripts/
│ │ ├── file_protocol_test.js
│ │ └── on_inject_callback.js
│ ├── helpers/
│ │ ├── i18n_helper.js
│ │ └── tab_helper.js
│ ├── injected/
│ │ ├── live_css_resource.js
│ │ ├── live_img_resource.js
│ │ ├── live_resource.js
│ │ └── livepage.js
│ ├── livepages.js
│ ├── options.js
│ └── settings.js
├── manifest.json
├── options.html
├── package.json
├── release.sh
├── tasks/
│ └── translation.js
└── test/
├── index.html
└── units/
├── helpers/
│ └── tab_helper_test.js
└── injected/
├── live_resource_test.js
└── livepage_test.js
SYMBOL INDEX (14 symbols across 10 files)
FILE: js/helpers/i18n_helper.js
function i18nHelper (line 5) | function i18nHelper(){}
FILE: js/helpers/tab_helper.js
function supportedProtocol (line 6) | function supportedProtocol(tab) {
function executeScriptsInSerial (line 12) | function executeScriptsInSerial(tabId, scripts) {
FILE: js/injected/live_css_resource.js
function LiveCSSResource (line 5) | function LiveCSSResource(url, media, ownerNode) {
FILE: js/injected/live_img_resource.js
function LiveImgResource (line 5) | function LiveImgResource(url, element) {
FILE: js/injected/live_resource.js
function LiveResource (line 4) | function LiveResource(url) {
FILE: js/injected/livepage.js
function livePage (line 5) | function livePage(config) {
FILE: js/livepages.js
function livePages (line 4) | function livePages() {
FILE: js/options.js
function textListToArray (line 13) | function textListToArray(body) {
function updateValue (line 24) | function updateValue(e) {
function clearLivePages (line 43) | function clearLivePages() {
FILE: js/settings.js
function Settings (line 4) | function Settings() {
FILE: tasks/translation.js
function translateMessages (line 14) | function translateMessages(targetLanguage) {
function main (line 30) | async function main() {
Condensed preview — 62 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (167K chars).
[
{
"path": ".gitignore",
"chars": 454,
"preview": "# Numerous always-ignore extensions\n*.diff\n*.err\n*.orig\n*.log\n*.rej\n*.swo\n*.swp\n*.vi\n*~\n*.sass-cache\nnode_modules/*\nrepo"
},
{
"path": ".ruby-version",
"chars": 6,
"preview": "2.6.3\n"
},
{
"path": ".travis.yml",
"chars": 115,
"preview": "notifications:\n email: false\n\nlanguage: node_js\nnode_js:\n - '7.2.0'\n\nbefore_script:\n - npm install -g grunt-cli\n"
},
{
"path": "CHANGELOG.md",
"chars": 8312,
"preview": "# Changelog\n\nAll future milestones & current issues can be found on https://github.com/MikeRogers0/LivePage/issues\n\n## ["
},
{
"path": "CONTRIBUTING.md",
"chars": 750,
"preview": "# How to contribute to LivePage\n\nThank you for your interest in helping me with LivePage! I really appreciate it!\n\n## Fo"
},
{
"path": "Gruntfile.js",
"chars": 625,
"preview": "module.exports = function (grunt) {\n grunt.loadNpmTasks('grunt-contrib-qunit');\n grunt.loadNpmTasks('grunt-qunit-istan"
},
{
"path": "LICENSE.md",
"chars": 34189,
"preview": "GNU Affero General Public License\n=================================\n\n_Version 3, 19 November 2007_\n_Copyright © 2007 Fre"
},
{
"path": "README.md",
"chars": 2992,
"preview": "# No longer Maintained\n\nUnfortunately on the 10th February 2020, I decided it was time to stop supporting LivePage. Prim"
},
{
"path": "_locales/de/description_from_webstore.txt",
"chars": 692,
"preview": "LivePage ist ein Entwickler-Tool, das Website-Ressourcen (wie CSS, HTML und JavaScript) neu lädt, falls sie auf dem Serv"
},
{
"path": "_locales/de/messages.json",
"chars": 4552,
"preview": "{\n \"name\": {\n \"message\": \"LivePage\"\n },\n \"short_name\": {\n \"message\": \"LivePage\"\n },\n \"description\": {\n \"me"
},
{
"path": "_locales/en/description_from_webstore.txt",
"chars": 575,
"preview": "LivePage is a developer tool which reloads website resources (such as CSS, HTML and JavaScript) as they update on the se"
},
{
"path": "_locales/en/messages.json",
"chars": 4404,
"preview": "{\n \"name\": {\n \"message\": \"LivePage\"\n },\n \"short_name\": {\n \"message\": \"LivePage\"\n },\n \"description\": {\n \"me"
},
{
"path": "_locales/en_GB/description_from_webstore.txt",
"chars": 575,
"preview": "LivePage is a developer tool which reloads website resources (such as CSS, HTML and JavaScript) as they update on the se"
},
{
"path": "_locales/en_GB/messages.json",
"chars": 180,
"preview": "{\n \"@options_contribute_and_support\": {\n \"message\": \"Contribute & report bugs via GitHub\"\n },\n \"@options_developed"
},
{
"path": "_locales/en_US/description_from_webstore.txt",
"chars": 575,
"preview": "LivePage is a developer tool which reloads website resources (such as CSS, HTML and JavaScript) as they update on the se"
},
{
"path": "_locales/en_US/messages.json",
"chars": 227,
"preview": "{\n \"@options_contribute_and_support\": {\n \"message\": \"Contribute & report bugs via GitHub\"\n },\n \"@options_developed"
},
{
"path": "_locales/es/description_from_webstore.txt",
"chars": 651,
"preview": "LivePage es una herramienta de desarrollador que carga los recursos de los sitios web (tales como CSS, HTML y JavaScript"
},
{
"path": "_locales/es/messages.json",
"chars": 3913,
"preview": "{\n \"name\": {\n \"message\": \"LivePage\"\n },\n \"short_name\": {\n \"message\": \"LivePage\"\n },\n \"description\": {\n \"me"
},
{
"path": "_locales/fr/description_from_webstore.txt",
"chars": 727,
"preview": "LivePage est un outil de développement qui recharge les ressources de sites Web (CSS, HTML et JavaScript) lorsqu'elles c"
},
{
"path": "_locales/fr/messages.json",
"chars": 4046,
"preview": "{\n \"name\": {\n \"message\": \"LivePage\"\n },\n \"short_name\": {\n \"message\": \"LivePage\"\n },\n \"description\": {\n \"me"
},
{
"path": "_locales/it/messages.json",
"chars": 4768,
"preview": "{\n \"name\": {\n \"message\": \"LivePage\"\n },\n \"short_name\": {\n \"message\": \"LivePage\"\n },\n \"description\": {\n \"me"
},
{
"path": "_locales/ja/description_from_webstore.txt",
"chars": 328,
"preview": "ライブページは、ウェブサイトのリソース(例えばCSS、HTMLやJavaScriptなど)がサーバーで更新されると再ロードする開発者ツールなので、常にWebページの最新バージョンを見ていることになります。これで生産性が高まり、はるかに速くウ"
},
{
"path": "_locales/ja/messages.json",
"chars": 3715,
"preview": "{\n \"name\": {\n \"message\": \"ライブページ\"\n },\n \"short_name\": {\n \"message\": \"ライブページ\"\n },\n \"description\": {\n \"messag"
},
{
"path": "_locales/ko/messages.json",
"chars": 3783,
"preview": "{\n \"name\": {\n \"message\": \"라이브 페이지\"\n },\n \"short_name\": {\n \"message\": \"라이브 페이지\"\n },\n \"description\": {\n \"mess"
},
{
"path": "_locales/pt/messages.json",
"chars": 4626,
"preview": "{\n \"name\": {\n \"message\": \"LivePage\"\n },\n \"short_name\": {\n \"message\": \"LivePage\"\n },\n \"description\": {\n \"me"
},
{
"path": "_locales/pt_BR/description_from_webstore.txt",
"chars": 644,
"preview": "O LivePage é uma ferramenta de desenvolvimento que recarrega recursos de sites (tais como CSS, HTML e JavaScript), à med"
},
{
"path": "_locales/pt_BR/messages.json",
"chars": 4651,
"preview": "{\n \"name\": {\n \"message\": \"LivePage\"\n },\n \"short_name\": {\n \"message\": \"LivePage\"\n },\n \"description\": {\n \"me"
},
{
"path": "_locales/ru/description_from_webstore.txt",
"chars": 615,
"preview": "LivePage - инструмент разработчика, который перезагружает ресурсы веб-сайта (например, CSS, HTML и JavaScript) по мере и"
},
{
"path": "_locales/ru/messages.json",
"chars": 3855,
"preview": "{\n \"name\": {\n \"message\": \"LivePage\"\n },\n \"short_name\": {\n \"message\": \"LivePage\"\n },\n \"description\": {\n \"me"
},
{
"path": "_locales/zh-CN/messages.json",
"chars": 3439,
"preview": "{\n \"name\": {\n \"message\": \"LivePage\"\n },\n \"short_name\": {\n \"message\": \"LivePage\"\n },\n \"description\": {\n \"me"
},
{
"path": "_locales/zh-TW/messages.json",
"chars": 3439,
"preview": "{\n \"name\": {\n \"message\": \"LivePage\"\n },\n \"short_name\": {\n \"message\": \"LivePage\"\n },\n \"description\": {\n \"me"
},
{
"path": "css/options.css",
"chars": 1667,
"preview": "@import url(https://fonts.googleapis.com/css?family=Open+Sans);\nbody {\n font-family: 'Open Sans', sans-serif;\n backgro"
},
{
"path": "css/options.scss",
"chars": 1635,
"preview": "@import url(https://fonts.googleapis.com/css?family=Open+Sans);\n\nbody {\n font-family: 'Open Sans', sans-serif;\n backgr"
},
{
"path": "demo/body.css",
"chars": 52,
"preview": ".somebody {\n color: #43f;\n font-weight: normal;\n}\n"
},
{
"path": "demo/css_test.css",
"chars": 281,
"preview": "@import url(//fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,700,300,400);\n\nh1 {\n font-"
},
{
"path": "demo/css_test_2.css",
"chars": 21,
"preview": "p{ display: block; }\n"
},
{
"path": "demo/imported.css",
"chars": 31,
"preview": ".imported {\n display: none;\n}\n"
},
{
"path": "demo/index.html",
"chars": 1073,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <title>CSS Test</title>\n <link rel=\"styleshe"
},
{
"path": "demo/relative.html",
"chars": 377,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <title>Relative path Test</title>\n <link rel"
},
{
"path": "demo/src/css/imported.css",
"chars": 36,
"preview": "/*\n * I'm imported relatively.\n * /\n"
},
{
"path": "demo/src/index.css",
"chars": 33,
"preview": "@import url(\"css/imported.css\");\n"
},
{
"path": "js/background.js",
"chars": 2169,
"preview": "// Add the listners\n\n// When a page tell us it has has loaded successfully, it tells us & we start the script.\nchrome.ru"
},
{
"path": "js/content_scripts/file_protocol_test.js",
"chars": 208,
"preview": "// Based on http://pastebin.com/3deXunJV because Chromes API dosen't throw errors!\nchrome.extension.onRequest.addListene"
},
{
"path": "js/content_scripts/on_inject_callback.js",
"chars": 142,
"preview": "// When a page has loaded (This script is injected), we tell LivePage to start its job!\nchrome.runtime.sendMessage( { ac"
},
{
"path": "js/helpers/i18n_helper.js",
"chars": 1320,
"preview": "/*\n * i18n Helper\n * Makes working with googles i18n a touch cleaner.\n */\nfunction i18nHelper(){}\n\n// Depending on users"
},
{
"path": "js/helpers/tab_helper.js",
"chars": 696,
"preview": "/*\n * A collection of helpful functions used when interacting with tabs.\n */\n\n// Checks if the protocol is one javascrip"
},
{
"path": "js/injected/live_css_resource.js",
"chars": 1023,
"preview": "/*\n * LiveCSSResource Object\n */\n\nfunction LiveCSSResource(url, media, ownerNode) {\n this.url = url;\n this.element = o"
},
{
"path": "js/injected/live_img_resource.js",
"chars": 373,
"preview": "/*\n * LiveImgResource Object\n */\n\nfunction LiveImgResource(url, element) {\n this.url = url;\n this.element = element;\n}"
},
{
"path": "js/injected/live_resource.js",
"chars": 3631,
"preview": "/*\n * LiveResource Object\n */\nfunction LiveResource(url) {\n this.url = url;\n}\n\nLiveResource.prototype.method = \"GET\";\nL"
},
{
"path": "js/injected/livepage.js",
"chars": 6534,
"preview": "/* \n * LivePage is based on Live.js by Martin Kool (@mrtnkl). \n * Rewritten by Mike Rogers (@MikeRogers0)\n */\nfunction l"
},
{
"path": "js/livepages.js",
"chars": 3429,
"preview": "/*\n * The livePages object, manages making pages live & storing the live setting.\n */\nfunction livePages() {\n // The ob"
},
{
"path": "js/options.js",
"chars": 2994,
"preview": "// Set the global varibles.\nvar host_list = document.querySelector('#host_list');\nvar clear_all = document.querySelector"
},
{
"path": "js/settings.js",
"chars": 1834,
"preview": "/*\n * The Settings object, it stores users options.\n */\nfunction Settings() {\n // Set the default options:\n this.optio"
},
{
"path": "manifest.json",
"chars": 1289,
"preview": "{\n \"name\": \"__MSG_name__\",\n \"short_name\": \"__MSG_short_name__\",\n \"version\": \"2.7.0\",\n \"manifest_version\": 2,\n \"desc"
},
{
"path": "options.html",
"chars": 6341,
"preview": "<!DOCTYPE html>\n<html>\n\n<head>\n <title data-i18n-key=\"@options_title\"></title>\n <link rel=\"stylesheet\" href=\"/css/opti"
},
{
"path": "package.json",
"chars": 364,
"preview": "{\n \"name\": \"LivePage\",\n \"private\": true,\n \"scripts\": {\n \"test\": \"grunt test\",\n \"release\": \"bash release.sh\"\n }"
},
{
"path": "release.sh",
"chars": 169,
"preview": "#!/usr/bin/env bash\nzip LivePage-`git describe --abbrev=0 --tags`.zip _locales/*/* css/* imgs/* js/* js/*/* CHANGELOG.md"
},
{
"path": "tasks/translation.js",
"chars": 1776,
"preview": "var TJO = require('translate-json-object')();\nvar fs = require('fs');\nvar enTranslation = JSON.parse(fs.readFileSync('.."
},
{
"path": "test/index.html",
"chars": 1381,
"preview": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"utf-8\">\n <title>LivePage</title>\n <link rel=\"stylesheet\" href=\"../node_"
},
{
"path": "test/units/helpers/tab_helper_test.js",
"chars": 586,
"preview": "QUnit.module( \"supportedProtocol\" );\n\nQUnit.test( \"Returns false for unsupported protocol\", function( assert ) {\n var t"
},
{
"path": "test/units/injected/live_resource_test.js",
"chars": 931,
"preview": "QUnit.module( \"nonCacheURL\", {\n beforeEach: function(){\n timekeeper.freeze(new Date());\n },\n afterEach: function()"
},
{
"path": "test/units/injected/livepage_test.js",
"chars": 2734,
"preview": "QUnit.module( \"normalizeURL\" );\n\nQUnit.test( \"Return everything before the # in a url when ignore_anchors is enabled\", f"
}
]
About this extraction
This page contains the full source code of the MikeRogers0/LivePage GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 62 files (144.1 KB), approximately 40.6k tokens, and a symbol index with 14 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.