From b1a0ea2fe0117ae848293d35b3510f844e084e6a Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Thu, 5 Oct 2017 18:27:01 -0700 Subject: [PATCH 1/3] Revert "default behavior for youtube" This reverts commit dabbdef88b8d7558cdd3ce314491c702bc105966. --- brozzler/behaviors.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/brozzler/behaviors.yaml b/brozzler/behaviors.yaml index 212ae5c..18bed1b 100644 --- a/brozzler/behaviors.yaml +++ b/brozzler/behaviors.yaml @@ -99,6 +99,13 @@ click_css_selector: button.playButton.medium click_until_hard_timeout: False request_idle_timeout_sec: 10 +- # 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/.*$' behavior_js_template: simpleclicks.js.j2 From 2f61cad8fd0f8ef0eeca202a2cffacda9ea0a587 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Thu, 5 Oct 2017 18:57:52 -0700 Subject: [PATCH 2/3] huffpost selectors --- brozzler/behaviors.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brozzler/behaviors.yaml b/brozzler/behaviors.yaml index 18bed1b..3425b51 100644 --- a/brozzler/behaviors.yaml +++ b/brozzler/behaviors.yaml @@ -55,8 +55,8 @@ behavior_js_template: umbraBehavior.js.j2 default_parameters: actions: - - selector: .slideshow - - selector: .slideshow-overlay__container__left__nav__next + - selector: .slideshow-card__overlay + - selector: .slideshow__next - url_regex: '^https?://(?:www\.)?brooklynmuseum\.org/exhibitions/.*$' behavior_js_template: simpleclicks.js.j2 From 06969cc29c1b6974fe5921f89ae483747c03bebe Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Thu, 5 Oct 2017 18:58:24 -0700 Subject: [PATCH 3/3] comment out testing --- brozzler/js-templates/umbraBehavior.js.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/brozzler/js-templates/umbraBehavior.js.j2 b/brozzler/js-templates/umbraBehavior.js.j2 index 9cdb03d..10b8e14 100644 --- a/brozzler/js-templates/umbraBehavior.js.j2 +++ b/brozzler/js-templates/umbraBehavior.js.j2 @@ -24,8 +24,9 @@ var umbraBehavior = { intervalId : null, state : null, - actions : [{'selector': 'div.teaser, li.pager__item a'}], - //actions : {{actions|json}}, + //actions : [{'selector': 'div.teaser, li.pager__item a'}], + //actions : [{'selector': '.slideshow-card__overlay'}, {'selector': '.slideshow__next'}], + actions : {{actions|json}}, k : 0, intervalFunc: function() {