mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
updates for jina2
This commit is contained in:
parent
6c21a9f773
commit
425d44bf4a
@ -26,7 +26,7 @@
|
||||
behavior_js_template: umbraBehavior18q4.js.j2
|
||||
default_parameters:
|
||||
interval: 500
|
||||
iframes: false
|
||||
skip_iframes: true
|
||||
actions:
|
||||
- selector: button.coreSpriteDismissLarge
|
||||
- selector: 'a>.eLAPa>.KL4Bh'
|
||||
|
@ -26,7 +26,11 @@ class UmbraBehavior {
|
||||
this.idleSince = null;
|
||||
this.intervalId = null;
|
||||
this.intervalTimeMs = {{interval or 300}};
|
||||
this.doIframes = {{iframes or true}};
|
||||
{% if skip_iframes %}
|
||||
this.skipIframes = true;
|
||||
{% else %}
|
||||
this.skipIframes = false;
|
||||
{% endif %}
|
||||
this.index = 0;
|
||||
}
|
||||
|
||||
@ -44,7 +48,7 @@ class UmbraBehavior {
|
||||
|
||||
var documents = [];
|
||||
documents[0] = document;
|
||||
if (this.doIframes) {
|
||||
if (!(this.skipIframes)) {
|
||||
var iframes = document.querySelectorAll("iframe");
|
||||
var iframesLength = iframes.length;
|
||||
for (var i = 0; i < iframesLength; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user