convert clickGetPDFs and noguchi to jinja2

This commit is contained in:
Noah Levitt 2016-12-21 18:23:53 -08:00
parent 422a5ad726
commit 3922258c50
3 changed files with 5 additions and 5 deletions

View File

@ -39,11 +39,11 @@
request_idle_timeout_sec: 10
-
url_regex: '^https?://catalogue\.noguchi\.org/index.php/LoginReg/form$'
behavior_js_template: noguchi.js.template
behavior_js_template: noguchi.js.j2
request_idle_timeout_sec: 10
-
url_regex: '^https?://catalogue\.noguchi\.org/index.php/Search/Index/search/.*/target/ca_.*$'
behavior_js_template: noguchi.js.template
behavior_js_template: noguchi.js.j2
request_idle_timeout_sec: 10
-
url_regex: '^https?://(?:www\.)?huffingtonpost\.com/.*$'

View File

@ -37,7 +37,7 @@ var umbraAboveBelowOrOnScreen = function(e) {
var umbraState = {'idleSince':null};
var umbraAlreadyClicked = {'2016':true};
var clickTargets = document.querySelectorAll("${css_selector}");
var clickTargets = document.querySelectorAll({{css_selector|json}});
var pdfSelector = "a";

View File

@ -17,8 +17,8 @@
* limitations under the License.
*/
var UMBRA_N_USER_NAME = "${parameter_username}";
var UMBRA_N_PASSWORD = "${parameter_password}";
var UMBRA_N_USER_NAME = {{parameter_username|json}};
var UMBRA_N_PASSWORD = {{parameter_password|json}};
var umbraState = {'idleSince': null};
var re = /(?:Previous){0,1}\s+(page\s(\d+)\/\d+)\s+(?:Next){0,1}/;