From af01fcbcfe20d1b9affb14289a1a93637f504308 Mon Sep 17 00:00:00 2001 From: Eldon Date: Thu, 13 Feb 2014 13:32:34 -0500 Subject: [PATCH] Add more flickr behavior --- umbra/behaviors.json | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/umbra/behaviors.json b/umbra/behaviors.json index 2c15565..360c014 100644 --- a/umbra/behaviors.json +++ b/umbra/behaviors.json @@ -1,20 +1,27 @@ [ { "scripts": [ - "setInterval(function() { window.scrollBy(10000,10000); }, 1000);" + "setInterval(function() {}, 1000);" ], "site": ".*" }, { "scripts": [ - "setInterval(function() { a = document.evaluate( '//a[(@href = \"#\" and @role = \"button\" and contains(.,\"more comments\")) or starts-with(@href, \"/browse/likes\")]', document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null ); f = a.iterateNext(); f.click();}, 1000);" + "setTimeout(function() { setInterval(function() { a = document.evaluate( '//a[(@href = \"#\" and @role = \"button\" and contains(.,\"more comments\")) or starts-with(@href, \"/browse/likes\")]', document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null ); f = a.iterateNext(); f.click();}, 1000);}, 5000);" ], "site": ".*facebook.com.*" }, { "scripts": [ - "" + "setTimeout(function() { a = document.evaluate( \"//a[contains(@class, 'sn-ico-slideshow')]\", document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null ); f = a.iterateNext(); f.click();}, 5000);" + ], + "site": ".*flickr.com.*" + }, + { + "scripts": [ + "setTimeout(function() { a = document.evaluate( \"//a[contains(@data-track, 'photo-click')]\", document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null ); setInterval(function() { f = a.iterateNext(); f.click();}, 5000)}, 5000);" ], "site": ".*flickr.com.*" } + ]