mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-01 11:06:17 -04:00
updates for jina2
This commit is contained in:
parent
6c21a9f773
commit
425d44bf4a
2 changed files with 7 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
behavior_js_template: umbraBehavior18q4.js.j2
|
behavior_js_template: umbraBehavior18q4.js.j2
|
||||||
default_parameters:
|
default_parameters:
|
||||||
interval: 500
|
interval: 500
|
||||||
iframes: false
|
skip_iframes: true
|
||||||
actions:
|
actions:
|
||||||
- selector: button.coreSpriteDismissLarge
|
- selector: button.coreSpriteDismissLarge
|
||||||
- selector: 'a>.eLAPa>.KL4Bh'
|
- selector: 'a>.eLAPa>.KL4Bh'
|
||||||
|
|
|
@ -26,7 +26,11 @@ class UmbraBehavior {
|
||||||
this.idleSince = null;
|
this.idleSince = null;
|
||||||
this.intervalId = null;
|
this.intervalId = null;
|
||||||
this.intervalTimeMs = {{interval or 300}};
|
this.intervalTimeMs = {{interval or 300}};
|
||||||
this.doIframes = {{iframes or true}};
|
{% if skip_iframes %}
|
||||||
|
this.skipIframes = true;
|
||||||
|
{% else %}
|
||||||
|
this.skipIframes = false;
|
||||||
|
{% endif %}
|
||||||
this.index = 0;
|
this.index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +48,7 @@ class UmbraBehavior {
|
||||||
|
|
||||||
var documents = [];
|
var documents = [];
|
||||||
documents[0] = document;
|
documents[0] = document;
|
||||||
if (this.doIframes) {
|
if (!(this.skipIframes)) {
|
||||||
var iframes = document.querySelectorAll("iframe");
|
var iframes = document.querySelectorAll("iframe");
|
||||||
var iframesLength = iframes.length;
|
var iframesLength = iframes.length;
|
||||||
for (var i = 0; i < iframesLength; i++) {
|
for (var i = 0; i < iframesLength; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue