Kill popup window

Close all popup window automatic

Version au 01/08/2020. Voir la dernière version.

// ==UserScript==
// @name         Kill popup window
// @namespace    https://greasyforks.org/en/scripts/408032-close-all-popup-window/
// @version      0.1
// @description  Close all popup window automatic
// @author       TechComet
// @match        https://*/*
// @match        http://*/*
// @supportURL   https://greasyforks.org/en/scripts/408032/feedback
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let except_urls = [
        'google.com', 'facebook.com'
    ]

    var i = 0
    while (except_urls.length > i) {
        if (window.location.indexOf(except_urls[i]) == -1) {
            window.close();
        }
     i++
    }
    
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。