commit 2be4c1902a7a17ce8d259e2f8cbb04a27b58ba9c
parent 45d3517479735c9ffbfa855d6035105b30ce8303
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Mon, 14 Nov 2016 17:58:02 +0100
Some fixes
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/screencap_iitc.js b/screencap_iitc.js
@@ -101,7 +101,7 @@ function afterCookieLogin(IntelURL, search) {
loadIitcPlugin('http://iitc.jonatkins.com/release/plugins/canvas-render.user.js');
for(var i in plugins){
var plugin = plugins[i];
- if(plugin.match(^[a-zA-Z]+://)){
+ if(plugin.match('^[a-zA-Z]+://')){
loadIitcPlugin(plugin);
}else{
loadLocalIitcPlugin(plugin);
@@ -118,7 +118,7 @@ function afterCookieLogin(IntelURL, search) {
e.keyCode = 13;
$("#search").trigger(e);
}, 2000);
- setInterval(function() {
+ var checkExist = setInterval(function() {
if ($('.searchquery').length > 0) {
window.setTimeout(function() {$('.searchquery > :nth-child(2)').children()[0].click();}, 1000);
clearInterval(checkExist);