steamfaucet / AutoClose Windows For Icon Captcha

// ==UserScript==
// @name         AutoClose Windows For Icon Captcha
// @namespace    Close windows
// @version      0.1
// @description  Close Windows for Icon Captcha
// @author       steamfaucet
// @match        *://*/*
// @noframes
// @run-at       document-start
// @license     GPL-3.0-or-later; https://www.gnu.org/licenses/gpl-3.0.txt
// @icon
// @grant        window.close
// ==/UserScript==

(function () {
  'use strict';

  if (window.name == "IconCaptchaWindow" && !window.location.href.includes("nav3.php") && !window.location.href.includes("surf.php")) {
    window.close();
  }
})();