mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-11 07:50:24 -04:00
disable downloads & kccfed behavior
This commit is contained in:
parent
73454d2ac7
commit
d398d2d006
2 changed files with 8 additions and 8 deletions
|
@ -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
|
* click on linked PDFs found
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-2016 Internet Archive
|
* Copyright (C) 2014-2016 Internet Archive
|
||||||
|
@ -76,7 +76,7 @@ var umbraIntervalFunc = function() {
|
||||||
if (!(pdfID in umbraAlreadyClicked)){
|
if (!(pdfID in umbraAlreadyClicked)){
|
||||||
var where = umbraAboveBelowOrOnScreen(pdfTargets[i]);
|
var where = umbraAboveBelowOrOnScreen(pdfTargets[i]);
|
||||||
if (where === 0) {
|
if (where === 0) {
|
||||||
pdfTargets[i].setAttribute('download','');
|
// pdfTargets[i].setAttribute('download',''); // umbra ignores downloads
|
||||||
var mouseOverEvent = document.createEvent('Events');
|
var mouseOverEvent = document.createEvent('Events');
|
||||||
mouseOverEvent.initEvent("mouseover", true, false);
|
mouseOverEvent.initEvent("mouseover", true, false);
|
||||||
pdfTargets[i].dispatchEvent(mouseOverEvent);
|
pdfTargets[i].dispatchEvent(mouseOverEvent);
|
||||||
|
|
|
@ -45,12 +45,12 @@ behaviors:
|
||||||
url_regex: '^https?://(?:www\.)?instagram\.com/.*$'
|
url_regex: '^https?://(?:www\.)?instagram\.com/.*$'
|
||||||
behavior_js: instagram.js
|
behavior_js: instagram.js
|
||||||
request_idle_timeout_sec: 10
|
request_idle_timeout_sec: 10
|
||||||
- # ARI-4930 test
|
# - # ARI-4930 test
|
||||||
url_regex: '^https?://(?:www\.)?kansascityfed\.org/publications/research/er/archive/.*$'
|
# url_regex: '^https?://(?:www\.)?kansascityfed\.org/publications/research/er/archive/.*$'
|
||||||
behavior_js_template: clickGetPDFs.js.template
|
# behavior_js_template: clickGetPDFs.js.template
|
||||||
default_parameters:
|
# default_parameters:
|
||||||
css_selector: li.years>a
|
# css_selector: li.years>a
|
||||||
request_idle_timeout_sec: 10
|
# request_idle_timeout_sec: 10
|
||||||
-
|
-
|
||||||
url_regex: '^https?://(?:www\.)?huffingtonpost\.com/.*$'
|
url_regex: '^https?://(?:www\.)?huffingtonpost\.com/.*$'
|
||||||
behavior_js_template: huffpostslides.js
|
behavior_js_template: huffpostslides.js
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue