disable downloads & kccfed behavior

This commit is contained in:
Barbara Miller 2016-06-25 15:05:37 -07:00
parent 0ee8f7f538
commit 5ecc58beae
2 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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