diff --git a/brozzler/behaviors.yaml b/brozzler/behaviors.yaml index 5c8ceb2..3f696d9 100644 --- a/brozzler/behaviors.yaml +++ b/brozzler/behaviors.yaml @@ -39,6 +39,7 @@ url_regex: '^https?://(?:www\.)?instagram\.com/.*$' behavior_js_template: umbraBehavior.js.j2 default_parameters: + interval: 500 actions: - selector: .glyphsSpriteGrey_Close rmSelector: '.RnEpo' diff --git a/brozzler/js-templates/umbraBehavior.js.j2 b/brozzler/js-templates/umbraBehavior.js.j2 index 058df5e..cca01df 100644 --- a/brozzler/js-templates/umbraBehavior.js.j2 +++ b/brozzler/js-templates/umbraBehavior.js.j2 @@ -109,6 +109,10 @@ class UmbraBehavior { somethingLeftAbove = true; } } + if (limit && limit == i) { + this.nextAction(); + break; + } } if (!didSomething) {