mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
more better yaml, target check
This commit is contained in:
parent
9062bee99d
commit
f55c12ffe2
@ -39,8 +39,19 @@ var umbraIntervalFunc = function() {
|
||||
var clickedSomething = false;
|
||||
var somethingLeftBelow = false;
|
||||
var somethingLeftAbove = false;
|
||||
var target = null;
|
||||
|
||||
var navlinks = document.querySelectorAll("div.nav > a");
|
||||
if (navlinks) {
|
||||
if (navlinks.length > 1) {
|
||||
target = navlinks[1];
|
||||
} else {
|
||||
if navlinks[0].textContent.startsWith("Next") {
|
||||
target = navlinks[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var target = document.querySelectorAll("div.nav > a")[1];
|
||||
if (target) {
|
||||
var where = umbraAboveBelowOrOnScreen(target);
|
||||
if (where === 0) {
|
||||
|
@ -49,6 +49,10 @@ behaviors:
|
||||
url_regex: '^https?://catalogue\.noguchi\.org/index.php$'
|
||||
behavior_js_template: noguchi.js.template
|
||||
request_idle_timeout_sec: 10
|
||||
-
|
||||
url_regex: '^https?://catalogue\.noguchi\.org/index.php/LoginReg/form$'
|
||||
behavior_js_template: noguchi.js.template
|
||||
request_idle_timeout_sec: 10
|
||||
-
|
||||
url_regex: '^https?://catalogue\.noguchi\.org/index.php/Search/Index/search/.*/target/ca_.*$'
|
||||
behavior_js_template: noguchi.js.template
|
||||
|
Loading…
x
Reference in New Issue
Block a user