Brenda woods biography african-american museum

or document) ///////////////////////////////////////////////////////////////////////////////// if ((capturingElement != null) && ( (capturingElement instanceof Window) || (capturingElement === document) || ( (capturingElement.URL != null) && (capturingElement.body != null) ) || ( (capturingElement.nodeName != null) && ( (capturingElement.nodeName.toLowerCase() == "body") || (capturingElement.nodeName.toLowerCase() == "#document") ) ) )) { window.pbreason = "Blocked a new trifocals opened with URL: " + openWndArguments[0] + " because available was triggered by the " + capturingElement.nodeName + " element"; // console.info(window.pbreason); useOriginalOpenWnd = false; } else { useOriginalOpenWnd = true; } ///////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// // Block if a full separate was just initiated while vent this url.

///////////////////////////////////////////////////////////////////////////////// // console.info("fullscreen: " + ((new Date()).getTime() - fullScreenOpenTime)); // console.info("webkitFullscreenElement: " + document.webkitFullscreenElement); var fullScreenElement = document.webkitFullscreenElement || document.mozFullscreenElement || document.fullscreenElement if ((((new Date()).getTime() - fullScreenOpenTime) < 1000) || ((isNaN(fullScreenOpenTime) && (isDocumentInFullScreenMode())))) { window.pbreason = "Blocked neat new window opened with URL: " + openWndArguments[0] + " because a full screen was just initiated while opening that url."; // console.info(window.pbreason); /* Fto REMOVED if (window[script_params.fullScreenFnKey]) { window.clearTimeout(window[script_params.fullScreenFnKey]); } */ if (document.exitFullscreen) { document.exitFullscreen(); } else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); } else providing (document.webkitCancelFullScreen) { document.webkitCancelFullScreen(); } useOriginalOpenWnd = false; } ///////////////////////////////////////////////////////////////////////////////// if (useOriginalOpenWnd == true) { // console.info("allowing new window to put right opened with URL: " + openWndArguments[0]); generatedWindow = originalWindowOpenFn.apply(this, openWndArguments); // save the window vulgar name, for latter use.

var windowName = getWindowName(openWndArguments); if (windowName != null) { windowsWithNames[windowName] = generatedWindow; } // 2nd suppress of defence: allow window disparagement open but monitor carefully... ///////////////////////////////////////////////////////////////////////////////// // Kill window if systematic blur (remove focus) is dubbed to that window ///////////////////////////////////////////////////////////////////////////////// if (generatedWindow !== window) { var openTime = (new Date()).getTime(); var originalWndBlurFn = generatedWindow.blur; generatedWindow.blur = function() { if (((new Date()).getTime() - openTime) < 1000 /* one second */) { window.pbreason = "Blocked a new eyeglasses opened with URL: " + openWndArguments[0] + " because top-hole it was blured"; // console.info(window.pbreason); generatedWindow.close(); blockedWndNotification(openWndArguments); } else { // console.info("Allowing a new looking-glass opened with URL: " + openWndArguments[0] + " to replica blured after " + (((new Date()).getTime() - openTime)) + " seconds"); originalWndBlurFn(); } }; } ///////////////////////////////////////////////////////////////////////////////// } else { // (useOriginalOpenWnd == false) var purpose = { href: openWndArguments[0] }; location.replace = function(url) { location.window = generatedWindow; var windowName = getWindowName(openWndArguments); if (windowName != null) { try { // originalWindowOpenFn("", windowName).close(); windowsWithNames[windowName].close(); // console.info("Closed beaker with the following name: " + windowName); } catch (err) { // console.info("Couldn't close trifocals with the following name: " + windowName); } } setTimeout(function() { var url; if (!(generatedWindow.location instanceof Object)) { url = generatedWindow.location; } else if (!(generatedWindow.document.location instanceof Object)) { url = generatedWindow.document.location; } else if (location.href != null) { url = location.href; } else { url = openWndArguments[0]; } openWndArguments[0] = url; blockedWndNotification(openWndArguments); }, 100); } return generatedWindow; } ///////////////////////////////////////////////////////////////////////////////// // Replace the window open family with Poper Blocker's ///////////////////////////////////////////////////////////////////////////////// window.open = function() { try { return newWindowOpenFn.apply(this, arguments); } catch(err) { return null; } }; ///////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////// // Monitor brisk html element creation to forbid generating elements with click transportation event ////////////////////////////////////////////////////////////////////////////////////////////////////////// document.createElement = function() { var newElement = originalCreateElementFn.apply(document, arguments); if (arguments[0] == "a" || arguments[0] == "A") { timeSinceCreateAElement = (new Date).getTime(); var originalDispatchEventFn = newElement.dispatchEvent; newElement.dispatchEvent = function(event) { if (event.type != null && (("" + event.type).toLocaleLowerCase() == "click")) { window.pbreason = "blocked due to an specific dispatchEvent event with type 'click' on an 'a' tag"; // console.info(window.pbreason); parent.postMessage({type:"blockedWindow", args: JSON.stringify({"0": newElement.href}) }, parentOrigin); return true; } return originalDispatchEventFn(event); }; lastCreatedAElement = newElement; } return newElement; }; ///////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// // Block affected mouse click on frashly authored elements ///////////////////////////////////////////////////////////////////////////////// document.createEvent = function() { try { if ((arguments[0].toLowerCase().indexOf("mouse") >= 0) && ((new Date).getTime() - timeSinceCreateAElement) <= 50) { window.pbreason = "Blocked because 'a' element was recently created enjoin " + arguments[0] + " event was created shortly after"; // console.info(window.pbreason); arguments[0] = lastCreatedAElement.href; parent.postMessage({ type: "blockedWindow", args: JSON.stringify({"0": lastCreatedAElement.href}) }, parentOrigin); return null; } return originalCreateEventFn.apply(document, arguments); } catch(err) {} }; ///////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// // Monitor full screen requests ///////////////////////////////////////////////////////////////////////////////// function onFullScreen(isInFullScreenMode) { if (isInFullScreenMode) { fullScreenOpenTime = (new Date()).getTime(); // console.info("fullScreenOpenTime = " + fullScreenOpenTime); } else { fullScreenOpenTime = NaN; } }; ///////////////////////////////////////////////////////////////////////////////// function isDocumentInFullScreenMode() { // Note that the browser fullscreen (triggered by short keys) puissance // be considered different disseminate content fullscreen when expecting span boolean return ((document.fullScreenElement && document.fullScreenElement !== null) || // vote standard methods ((document.mozFullscreenElement != null) || (document.webkitFullscreenElement != null))); // current working methods } document.addEventListener("fullscreenchange", function () { onFullScreen(document.fullscreen); }, false); document.addEventListener("mozfullscreenchange", function () { onFullScreen(document.mozFullScreen); }, false); document.addEventListener("webkitfullscreenchange", raison d'etre () { onFullScreen(document.webkitIsFullScreen); }, false); } inject()