Foxnews - close sticky video

Disables Foxnews floating video on scrolling down

// ==UserScript==
// @name            Foxnews - close sticky video
// @description     Disables Foxnews floating video on scrolling down
// @namespace       https://greasyfork.org/en/users/758587-barn852
// @version         1.1
// @author          barn852
// @include         http*://*.foxnews.com/*
// @include         http*://*.foxbusiness.com/*
// @grant           none
// @noframes
// ==/UserScript==

// source: http://forums.mozillazine.org/viewtopic.php?p=14752083#p14752083

setTimeout(function handler() {
  var element = document.querySelector("a.close");
  if (element && document.querySelector(".featured-video.sticky-video")) {
    element.click();
  } else {
    setTimeout(handler, 100);
  }
}, 1000);