From e2f572e9681cc24cf8f9367f9200d8f384c7a243 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Mon, 11 Dec 2023 12:19:21 -0800 Subject: [PATCH 1/3] initial moma behavior update --- brozzler/behaviors.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brozzler/behaviors.yaml b/brozzler/behaviors.yaml index 99634da..b44ebc1 100644 --- a/brozzler/behaviors.yaml +++ b/brozzler/behaviors.yaml @@ -158,7 +158,8 @@ behavior_js_template: umbraBehavior.js.j2 default_parameters: actions: - - selector: button[data-more-results-bottom-button] + - selector: 'div.link\/focus' + - selector: 'button.link\/focus' - # https://webarchive.jira.com/browse/ARI-4692 url_regex: '^https?://(?:www\.)?fec.gov/data/.*$' behavior_js_template: fec_gov.js From 06a4ba10f7c6e0fdf5d78243ac4f7fe0dbd3948f Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Fri, 19 Jan 2024 14:41:45 -0800 Subject: [PATCH 2/3] refined --- brozzler/behaviors.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/brozzler/behaviors.yaml b/brozzler/behaviors.yaml index b44ebc1..38b7ee7 100644 --- a/brozzler/behaviors.yaml +++ b/brozzler/behaviors.yaml @@ -1,7 +1,7 @@ # # brozzler/behaviors.yaml - behavior configuration # -# Copyright (C) 2014-2023 Internet Archive +# Copyright (C) 2014-2024 Internet Archive # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -157,9 +157,12 @@ url_regex: '^https?://(?:www\.)?moma.org/.*$' behavior_js_template: umbraBehavior.js.j2 default_parameters: + interval: 300 actions: - selector: 'div.link\/focus' + limit: 1 - selector: 'button.link\/focus' + repeatSameElement: true - # https://webarchive.jira.com/browse/ARI-4692 url_regex: '^https?://(?:www\.)?fec.gov/data/.*$' behavior_js_template: fec_gov.js From 0270267136d238dba3e657135ecd7c3e94e5ddd9 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Sat, 20 Jan 2024 13:00:05 -0800 Subject: [PATCH 3/3] fix indents --- brozzler/behaviors.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brozzler/behaviors.yaml b/brozzler/behaviors.yaml index 38b7ee7..088ad73 100644 --- a/brozzler/behaviors.yaml +++ b/brozzler/behaviors.yaml @@ -160,9 +160,9 @@ interval: 300 actions: - selector: 'div.link\/focus' - limit: 1 + limit: 1 - selector: 'button.link\/focus' - repeatSameElement: true + repeatSameElement: true - # https://webarchive.jira.com/browse/ARI-4692 url_regex: '^https?://(?:www\.)?fec.gov/data/.*$' behavior_js_template: fec_gov.js