From cdd62c0dd6c520b0dc378d769c041f7c6e5e1444 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Sat, 25 Jun 2016 15:05:37 -0700 Subject: [PATCH] disable downloads & kccfed behavior --- brozzler/behaviors.d/clickGetPDFs.js.template | 4 ++-- brozzler/behaviors.yaml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/brozzler/behaviors.d/clickGetPDFs.js.template b/brozzler/behaviors.d/clickGetPDFs.js.template index 7eaced5..4349835 100644 --- a/brozzler/behaviors.d/clickGetPDFs.js.template +++ b/brozzler/behaviors.d/clickGetPDFs.js.template @@ -1,5 +1,5 @@ /* - * brozzler/behaviors.d/clickGetPDFs.js.template - click on each of several elements and + * brozzler/behaviors.d/clickGetPDFs.js.template - WIP click on each of several elements and * click on linked PDFs found * * Copyright (C) 2014-2016 Internet Archive @@ -76,7 +76,7 @@ var umbraIntervalFunc = function() { if (!(pdfID in umbraAlreadyClicked)){ var where = umbraAboveBelowOrOnScreen(pdfTargets[i]); if (where === 0) { - pdfTargets[i].setAttribute('download',''); + // pdfTargets[i].setAttribute('download',''); // umbra ignores downloads var mouseOverEvent = document.createEvent('Events'); mouseOverEvent.initEvent("mouseover", true, false); pdfTargets[i].dispatchEvent(mouseOverEvent); diff --git a/brozzler/behaviors.yaml b/brozzler/behaviors.yaml index 6cdd902..764012c 100644 --- a/brozzler/behaviors.yaml +++ b/brozzler/behaviors.yaml @@ -45,12 +45,12 @@ behaviors: url_regex: '^https?://(?:www\.)?instagram\.com/.*$' behavior_js: instagram.js request_idle_timeout_sec: 10 - - # ARI-4930 test - url_regex: '^https?://(?:www\.)?kansascityfed\.org/publications/research/er/archive/.*$' - behavior_js_template: clickGetPDFs.js.template - default_parameters: - css_selector: li.years>a - request_idle_timeout_sec: 10 +# - # ARI-4930 test +# url_regex: '^https?://(?:www\.)?kansascityfed\.org/publications/research/er/archive/.*$' +# behavior_js_template: clickGetPDFs.js.template +# default_parameters: +# css_selector: li.years>a +# request_idle_timeout_sec: 10 - url_regex: '^https?://(?:www\.)?huffingtonpost\.com/.*$' behavior_js_template: huffpostslides.js