igg-games.com ad skip

igg-games ad skipper

Від 10.11.2019. Дивіться остання версія.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         igg-games.com ad skip
// @namespace    https://igg-games.com/
// @version      0.1
// @description  igg-games ad skipper
// @author       _Chelos_
// @match        bluemediafiles.com/creatinglinks*
// @match        megaup.net/*/*
// @grant        none
// ==/UserScript==
switch(window.location.host){
    case "bluemediafiles.com":{
window.location = "http"+getParameterByName("xurl");
    break;
}
    case "megaup.net":{
        let checktick = setInterval(()=>{
            let el = document.querySelector("a.btn")
            if(el){
                clearInterval(checktick);
                window.open(
  el.href,
  '_blank' // <- This is what makes it open in a new window.
);
                window.open('','_self').close()
            }
        },100)
       break;
    }
}
function getParameterByName(name, url) {
    if (!url) url = window.location.href;
    name = name.replace(/[\[\]]/g, '\\$&');
    var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
        results = regex.exec(url);
    if (!results) return null;
    if (!results[2]) return '';
    return decodeURIComponent(results[2].replace(/\+/g, ' '));
}