From 73bbd87d5dd98162e03e786a609419044d1a8f15 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Mon, 2 Feb 2015 14:52:56 -0800 Subject: [PATCH] merge in latest from master and adjust config as needed --- umbra/behaviors.d/default.js | 4 +++- umbra/behaviors.d/instagram.js | 2 -- umbra/behaviors.yaml | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/umbra/behaviors.d/default.js b/umbra/behaviors.d/default.js index e3f5665..67b5691 100644 --- a/umbra/behaviors.d/default.js +++ b/umbra/behaviors.d/default.js @@ -1,7 +1,9 @@ // vim:set sw=8 et: // -// Scrolls to the bottom of the page. That's it at the moment. +// Scrolls to the bottom of the page, and clicks on embedded soundcloud +// elements. // + var umbraAboveBelowOrOnScreen = function(e) { var eTop = e.getBoundingClientRect().top; if (eTop < window.scrollY) { diff --git a/umbra/behaviors.d/instagram.js b/umbra/behaviors.d/instagram.js index 8955fbc..ecda823 100644 --- a/umbra/behaviors.d/instagram.js +++ b/umbra/behaviors.d/instagram.js @@ -1,5 +1,3 @@ -// {"url_regex":"^https?://(?:www\\.)?instagram\\.com/.*$", "request_idle_timeout_sec":10} -// // vim:set sw=8 et: // diff --git a/umbra/behaviors.yaml b/umbra/behaviors.yaml index 44c13c0..687cc1b 100644 --- a/umbra/behaviors.yaml +++ b/umbra/behaviors.yaml @@ -16,6 +16,10 @@ behaviors: url_regex: '^https?://(?:www\.)?vimeo\.com/.*$' behavior_js: vimeo.js request_idle_timeout_sec: 10 + - + url_regex: '^https?://(?:www\.)?instagram\.com/.*$' + behavior_js: instagram.js + request_idle_timeout_sec: 10 - # acalog https://webarchive.jira.com/browse/ARI-3775 url_regex: '^https?://.*[?&]catoid=[^?]*$' click_css_selector: a[onclick]