Hey I'm writing chrome extension and I need to get access to blurSpy in this code:
var updateCt = (function() {
var onBlurHandler = function () {
window.honestRespondentWarning_popup.open();
};
var blurSpy = new BlurSpy(onBlurHandler, null, -1);
$(function() {
if ( document.hasFocus() ) {
blurSpy.start();
} else {
$(window).one("focus", function() {
if ( document.hasFocus() ) {
blurSpy.start();
}
});
}
});
return function() {
document.forms["questionForm"]["wb"].value = blurSpy.getBlursCount();
eraseCookie('blurs');
setEndTimeCookie();
}
})();
This code is in script tag in site main html file. Is it doable? ofc I used that trick to gain access to console-like js commands execution so my extension can do that if it is possible from console on site.