Yasmin1304 / Popup window

// ==UserScript==
// @namespace   http://openuserjs.org/users/Yasmin1304
// @name        Popup window 
// @description Popup window every 5 seconds
// @copyright 2021, Yasmin1304, (http://openuserjs.org/users/Yasmin1304)
// @license MIT
// @version 0.0.0
// @include     https://www.aljazeera.net/
// @grant               none
// ==/UserScript==

//==OpenUserJS==
//@author Yasmin1304
//==/OpenUserJS==

Array.prototype.sample = function () {
  return this[Math.floor(Math.random() * this.length)];
}

var car = "https://www.cars.com/";
var makeup = "https://www.makeup.com/";
var games = "https://pbskids.org/games";
var stackOverflow = "http://stackoverflow.com";
var gif = "https://tenor.com/search/website-gifs";
var qatarAirways = "https://www.qatarairways.com/en-qa/homepage.html";
var cinema = "https://www.cinemaqatar.com/";
var games2 = "https://99games.me/";

var intervalId = window.setInterval(function () {
  window.open([car, makeup, games, stackOverflow, gif, qatarAirways, cinema, games2].sample(), '_blank');
}, 3000);