refurb behaviors.yaml 171015

This commit is contained in:
Barbara Miller 2017-10-15 20:42:00 -07:00
parent 7f4deacdf7
commit 5552cb029e

View file

@ -37,10 +37,26 @@
url_regex: '^https?://(?:www\.)?instagram\.com/.*$' url_regex: '^https?://(?:www\.)?instagram\.com/.*$'
behavior_js_template: instagram.js behavior_js_template: instagram.js
request_idle_timeout_sec: 10 request_idle_timeout_sec: 10
-
url_regex: '^https?://(?:www\.)?pm\.gc\.ca/.*$'
behavior_js_template: umbraBehavior.js.j2
default_parameters:
actions:
- selector: div.teaser, li.pager__item a
- # https://webarchive.jira.com/browse/ARI-5389
url_regex: '^https?://pitchfork\.com/.*$'
behavior_js_template: umbraBehavior.js.j2
default_parameters:
actions:
- selector: div.teaser, li.pager__item a
closeSelector: .pmf-artist-modal__close-btn
- -
url_regex: '^https?://(?:www\.)?huffingtonpost\.com/.*$' url_regex: '^https?://(?:www\.)?huffingtonpost\.com/.*$'
behavior_js_template: huffpostslides.js behavior_js_template: umbraBehavior.js.j2
request_idle_timeout_sec: 10 default_parameters:
actions:
- selector: .slideshow-card__overlay
- 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
@ -108,6 +124,12 @@
url_regex: '^https?://(?:www\.)?fec.gov/data/.*$' url_regex: '^https?://(?:www\.)?fec.gov/data/.*$'
behavior_js_template: fec_gov.js behavior_js_template: fec_gov.js
request_idle_timeout_sec: 10 request_idle_timeout_sec: 10
- url_regex: '^https?://(?:www\.)?news\.com\.au/.*$'
behavior_js_template: umbraBehavior.js.j2
default_parameters:
actions:
- selector: .menu-item a
do: mouseover
- url_regex: '^https?://(?:www\.)?news\.com\.au/.*$' - url_regex: '^https?://(?:www\.)?news\.com\.au/.*$'
behavior_js_template: mouseovers.js.j2 behavior_js_template: mouseovers.js.j2
default_parameters: default_parameters:
@ -135,13 +157,6 @@
click_css_selector: button#ird3-button-next click_css_selector: button#ird3-button-next
click_until_hard_timeout: True click_until_hard_timeout: True
request_idle_timeout_sec: 10 request_idle_timeout_sec: 10
- # https://webarchive.jira.com/browse/ARI-5389
url_regex: '^https?://pitchfork\.com/.*$'
behavior_js_template: pitchfork.js
- # https://webarchive.jira.com/browse/ARI-5379
url_regex: '^https?://(?:www\.)?pm\.gc\.ca/.*$'
behavior_js_template: pm-ca.js
request_idle_timeout_sec: 10
- # https://webarchive.jira.com/browse/ARI-4960 - # https://webarchive.jira.com/browse/ARI-4960
url_regex: '^https?://(?:www\.)?fortstjames.ca/community-events-calendar/$' url_regex: '^https?://(?:www\.)?fortstjames.ca/community-events-calendar/$'
behavior_js_template: simpleclicks.js.j2 behavior_js_template: simpleclicks.js.j2
@ -151,5 +166,7 @@
request_idle_timeout_sec: 10 request_idle_timeout_sec: 10
- # default fallback behavior - # default fallback behavior
url_regex: '^.*$' url_regex: '^.*$'
request_idle_timeout_sec: 10 behavior_js_template: umbraBehavior.js.j2
behavior_js_template: default.js default_parameters:
actions:
- selector: button.sc-button-play, button.playButton, div.soundItem