mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-13 16:55:34 -04:00
Merge branch 'behavior-refactor' into qa
This commit is contained in:
commit
1f9ca387a6
2 changed files with 12 additions and 3 deletions
|
@ -55,8 +55,8 @@
|
||||||
behavior_js_template: umbraBehavior.js.j2
|
behavior_js_template: umbraBehavior.js.j2
|
||||||
default_parameters:
|
default_parameters:
|
||||||
actions:
|
actions:
|
||||||
- selector: .slideshow
|
- selector: .slideshow-card__overlay
|
||||||
- selector: .slideshow-overlay__container__left__nav__next
|
- selector: .slideshow__next
|
||||||
-
|
-
|
||||||
url_regex: '^https?://(?:www\.)?brooklynmuseum\.org/exhibitions/.*$'
|
url_regex: '^https?://(?:www\.)?brooklynmuseum\.org/exhibitions/.*$'
|
||||||
behavior_js_template: simpleclicks.js.j2
|
behavior_js_template: simpleclicks.js.j2
|
||||||
|
@ -106,7 +106,14 @@
|
||||||
click_css_selector: button.playButton.medium
|
click_css_selector: button.playButton.medium
|
||||||
click_until_hard_timeout: False
|
click_until_hard_timeout: False
|
||||||
request_idle_timeout_sec: 10
|
request_idle_timeout_sec: 10
|
||||||
- # https://webarchive.jira.com/browse/ARI-5453 / ARI-5391
|
- # https://webarchive.jira.com/browse/ARI-4690
|
||||||
|
url_regex: '^https?://(?:www\.)?youtube.com/.*$'
|
||||||
|
behavior_js_template: simpleclicks.js.j2
|
||||||
|
default_parameters:
|
||||||
|
click_css_selector: span.load-more-text
|
||||||
|
click_until_hard_timeout: False
|
||||||
|
request_idle_timeout_sec: 10
|
||||||
|
- # https://webarchive.jira.com/browse/ARI-5453
|
||||||
url_regex: '^https?://.*\.wixsite.com/.*$'
|
url_regex: '^https?://.*\.wixsite.com/.*$'
|
||||||
behavior_js_template: simpleclicks.js.j2
|
behavior_js_template: simpleclicks.js.j2
|
||||||
default_parameters:
|
default_parameters:
|
||||||
|
|
|
@ -24,6 +24,8 @@ var umbraBehavior = {
|
||||||
intervalId : null,
|
intervalId : null,
|
||||||
state : null,
|
state : null,
|
||||||
|
|
||||||
|
//actions : [{'selector': 'div.teaser, li.pager__item a'}],
|
||||||
|
//actions : [{'selector': '.slideshow-card__overlay'}, {'selector': '.slideshow__next'}],
|
||||||
actions : {{actions|json}},
|
actions : {{actions|json}},
|
||||||
k : 0,
|
k : 0,
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue