mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
disable downloads & kccfed behavior
This commit is contained in:
parent
0ee8f7f538
commit
5ecc58beae
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user