summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2017-12-24 10:23:09 +0100
committerLars-Dominik Braun <lars@6xq.net>2017-12-24 10:23:09 +0100
commitd4951d1fe8be0941df9cafbfe57c21d26f66e8ee (patch)
treef24081e310a1bcbf1aea8ddc258d60050f012c0d /README.rst
parentfcb9ae93514d26085c8e0aebf2fc9b9c64a77453 (diff)
downloadcrocoite-d4951d1fe8be0941df9cafbfe57c21d26f66e8ee.tar.gz
crocoite-d4951d1fe8be0941df9cafbfe57c21d26f66e8ee.tar.bz2
crocoite-d4951d1fe8be0941df9cafbfe57c21d26f66e8ee.zip
Refactor behavior scripts
No functional changes, just cleanup. Replaces onload and onsnapshot events. Move screen metric emulation, DOM snapshots and screenshots here as well.
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst19
1 files changed, 7 insertions, 12 deletions
diff --git a/README.rst b/README.rst
index 6fe9606..f86d8aa 100644
--- a/README.rst
+++ b/README.rst
@@ -31,20 +31,15 @@ One-shot commandline interface and pywb_ playback::
.. _pywb: https://github.com/ikreymer/pywb
-Injecting JavaScript
-^^^^^^^^^^^^^^^^^^^^
+Behavior scripts
+^^^^^^^^^^^^^^^^
-A lot of sites need some form of interaction to load more content. Twitter for
+A lot of sites need some form of interaction to dynamically load more content. Twitter for
instance continously loads new posts when scrolling to the bottom of the page.
-crocoite can emulate these user interactions by injecting JavaScript into the
-page before loading it. For instance ``--onload=scroll.js`` scrolls the page to
-the bottom.
-
-If extra work is required before taking a DOM snapshot, additional scripts can
-be run with ``--onsnapshot=canvas-snapshot.js``, which replaces all HTML
-``<canvas>`` elements with a static picture of their current contents.
-
-Example scripts can be found in the directory ``crocoite/data/``.
+crocoite can emulate these user interactions (and more) by combining control
+code written in Python and injecting JavaScript into the page. The code can be
+limited to certain URLs or apply to every page loaded. By default all scripts
+available are enabled, see command line flag ``--behavior``.
Caveats
-------