Close all popup window

try to take over the world!

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

// ==UserScript==
// @name         Close all popup window
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       TechComet
// @match        https://*/*
// @match        http://*/*
// @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。